gdiplus: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd01ad223d
commit
a22d613321
|
@ -3,6 +3,8 @@ IMPORTLIB = gdiplus
|
||||||
IMPORTS = uuid shlwapi ole32 user32 gdi32
|
IMPORTS = uuid shlwapi ole32 user32 gdi32
|
||||||
DELAYIMPORTS = windowscodecs
|
DELAYIMPORTS = windowscodecs
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
brush.c \
|
brush.c \
|
||||||
customlinecap.c \
|
customlinecap.c \
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include "winnls.h"
|
#include "winnls.h"
|
||||||
#include "winreg.h"
|
#include "winreg.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
|
WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
|
||||||
|
|
||||||
|
@ -507,7 +506,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW
|
||||||
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||||
lf->lfQuality = DEFAULT_QUALITY;
|
lf->lfQuality = DEFAULT_QUALITY;
|
||||||
lf->lfPitchAndFamily = 0;
|
lf->lfPitchAndFamily = 0;
|
||||||
strcpyW(lf->lfFaceName, font->family->FamilyName);
|
lstrcpyW(lf->lfFaceName, font->family->FamilyName);
|
||||||
|
|
||||||
TRACE("=> %s,%d\n", debugstr_w(lf->lfFaceName), lf->lfHeight);
|
TRACE("=> %s,%d\n", debugstr_w(lf->lfFaceName), lf->lfHeight);
|
||||||
|
|
||||||
|
@ -710,7 +709,7 @@ static GpStatus find_installed_font(const WCHAR *name, struct font_metrics *fm)
|
||||||
{
|
{
|
||||||
HFONT hfont, old_font;
|
HFONT hfont, old_font;
|
||||||
|
|
||||||
strcpyW(fm->facename, lf.lfFaceName);
|
lstrcpyW(fm->facename, lf.lfFaceName);
|
||||||
|
|
||||||
hfont = CreateFontIndirectW(&lf);
|
hfont = CreateFontIndirectW(&lf);
|
||||||
old_font = SelectObject(hdc, hfont);
|
old_font = SelectObject(hdc, hfont);
|
||||||
|
@ -1632,7 +1631,7 @@ static INT CALLBACK add_font_proc(const LOGFONTW *lfw, const TEXTMETRICW *ntm,
|
||||||
if (lfw->lfFaceName[0] == '@')
|
if (lfw->lfFaceName[0] == '@')
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (fonts->count && strcmpiW(lfw->lfFaceName, fonts->FontFamilies[fonts->count-1]->FamilyName) == 0)
|
if (fonts->count && wcsicmp(lfw->lfFaceName, fonts->FontFamilies[fonts->count-1]->FamilyName) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (fonts->allocated == fonts->count)
|
if (fonts->allocated == fonts->count)
|
||||||
|
@ -1664,7 +1663,7 @@ static INT CALLBACK add_font_proc(const LOGFONTW *lfw, const TEXTMETRICW *ntm,
|
||||||
/* skip duplicates */
|
/* skip duplicates */
|
||||||
for (i=0; i<fonts->count; i++)
|
for (i=0; i<fonts->count; i++)
|
||||||
{
|
{
|
||||||
if (strcmpiW(family->FamilyName, fonts->FontFamilies[i]->FamilyName) == 0)
|
if (wcsicmp(family->FamilyName, fonts->FontFamilies[i]->FamilyName) == 0)
|
||||||
{
|
{
|
||||||
GdipDeleteFontFamily(family);
|
GdipDeleteFontFamily(family);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include "objbase.h"
|
#include "objbase.h"
|
||||||
|
@ -2225,7 +2224,7 @@ void get_log_fontW(const GpFont *font, GpGraphics *graphics, LOGFONTW *lf)
|
||||||
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||||
lf->lfQuality = DEFAULT_QUALITY;
|
lf->lfQuality = DEFAULT_QUALITY;
|
||||||
lf->lfPitchAndFamily = 0;
|
lf->lfPitchAndFamily = 0;
|
||||||
strcpyW(lf->lfFaceName, font->family->FamilyName);
|
lstrcpyW(lf->lfFaceName, font->family->FamilyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void get_font_hfont(GpGraphics *graphics, GDIPCONST GpFont *font,
|
static void get_font_hfont(GpGraphics *graphics, GDIPCONST GpFont *font,
|
||||||
|
@ -5114,7 +5113,7 @@ GpStatus gdip_format_string(HDC hdc,
|
||||||
|
|
||||||
for(i = 0, j = 0; i < length; i++){
|
for(i = 0, j = 0; i < length; i++){
|
||||||
/* FIXME: This makes the indexes passed to callback inaccurate. */
|
/* FIXME: This makes the indexes passed to callback inaccurate. */
|
||||||
if(!isprintW(string[i]) && (string[i] != '\n'))
|
if(!iswprint(string[i]) && (string[i] != '\n'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* FIXME: tabs should be handled using tabstops from stringformat */
|
/* FIXME: tabs should be handled using tabstops from stringformat */
|
||||||
|
@ -6941,7 +6940,7 @@ GpStatus WINGDIPAPI GdipMeasureDriverString(GpGraphics *graphics, GDIPCONST UINT
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
if (length == -1)
|
if (length == -1)
|
||||||
length = strlenW(text);
|
length = lstrlenW(text);
|
||||||
|
|
||||||
if (length == 0)
|
if (length == 0)
|
||||||
{
|
{
|
||||||
|
@ -7302,7 +7301,7 @@ static GpStatus draw_driver_string(GpGraphics *graphics, GDIPCONST UINT16 *text,
|
||||||
GpStatus stat = NotImplemented;
|
GpStatus stat = NotImplemented;
|
||||||
|
|
||||||
if (length == -1)
|
if (length == -1)
|
||||||
length = strlenW(text);
|
length = lstrlenW(text);
|
||||||
|
|
||||||
if (graphics->hdc && !graphics->alpha_hdc &&
|
if (graphics->hdc && !graphics->alpha_hdc &&
|
||||||
((flags & DriverStringOptionsRealizedAdvance) || length <= 1) &&
|
((flags & DriverStringOptionsRealizedAdvance) || length <= 1) &&
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include "objbase.h"
|
#include "objbase.h"
|
||||||
|
|
Loading…
Reference in New Issue