Skip to content

Commit f65426e

Browse files
committed
Sync with trunk r55875
svn path=/branches/GSoC_2011/GdiFontDriver/; revision=55877
1 parent 2a12f69 commit f65426e

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

win32ss/gdi/font/dcfont.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PRFONT
5050
NTAPI
5151
DC_prfnt(PDC pdc)
5252
{
53-
PRFONT prfnt;
53+
PRFONT prfnt = 0;
5454

5555
/* Select "current" font */
5656
DC_hSelectFont(pdc, pdc->pdcattr->hlfntNew);

win32ss/gdi/font/fntdrvsup.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ InitFontSupport(VOID)
3838
ghsemFontDriver = EngCreateSemaphore();
3939
if (!ghsemFontDriver) return FALSE;
4040

41+
/* Initialize the global public font taböe */
4142
if (!PFT_bInit(&gpftPublic)) return FALSE;
4243

4344
return TRUE;
@@ -272,6 +273,7 @@ EngLoadFontFileFD(
272273
}
273274

274275
BOOL
276+
NTAPI
275277
EngLoadFontDriver(
276278
IN PWSTR pwszDriverName)
277279
{
@@ -306,7 +308,7 @@ EngLoadFontDriver(
306308
HS_DDI_MAX,
307309
pfntdev->ahsurf,
308310
sizeof(GDIINFO),
309-
&pfntdev->gdiinfo,
311+
(ULONG*)&pfntdev->gdiinfo,
310312
sizeof(DEVINFO),
311313
&pfntdev->devinfo,
312314
(HDEV)pfntdev,

win32ss/gdi/font/font.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,16 @@ GreExtTextOutW(
410410
IN OPTIONAL LPINT Dx,
411411
IN DWORD dwCodePage);
412412

413-
414-
#define DbgDefaultChannel 0x0
415-
416413
VOID
417414
NTAPI
418415
EngAcquireSemaphoreShared(
419416
IN HSEMAPHORE hsem);
417+
418+
BOOL
419+
NTAPI
420+
GreGetTextExtentW(
421+
HDC hdc,
422+
LPWSTR lpwsz,
423+
INT cwc,
424+
LPSIZE psize,
425+
UINT flOpts);

win32ss/gdi/font/textmetric.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@ NtGdiGetOutlineTextMetricsInternalW(
239239
return 0;
240240
}
241241

242+
BOOL
243+
NTAPI
244+
GreGetTextExtentW(
245+
HDC hdc,
246+
LPWSTR lpwsz,
247+
INT cwc,
248+
LPSIZE psize,
249+
UINT flOpts)
250+
{
251+
ASSERT(FALSE);
252+
return FALSE;
253+
}
254+
242255
W32KAPI
243256
BOOL
244257
APIENTRY
@@ -267,7 +280,7 @@ GreGetTextExtentExW(
267280
{
268281
PDC pdc;
269282
PRFONT prfnt;
270-
BOOL bResult;
283+
BOOL bResult = 0;
271284
ESTROBJ estro;
272285

273286
DPRINT1("GreGetTextExtentExW()\n");

win32ss/gdi/ntgdi/path.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,12 +2288,10 @@ PATH_ExtTextOut(
22882288
if (!count) return TRUE;
22892289
if (flags & ETO_GLYPH_INDEX) ggo_flags |= GGO_GLYPH_INDEX;
22902290

2291-
ASSERT(FALSE);
2292-
22932291
for (idx = 0; idx < count; idx++)
22942292
{
22952293
MAT2 identity = { {0, 1}, {0, 0}, {0, 0}, {0, 1} };
2296-
GLYPHMETRICS gm;
2294+
GLYPHMETRICS gm = {0};
22972295
DWORD dwSize;
22982296
void *outline;
22992297

@@ -2331,13 +2329,12 @@ ASSERT(FALSE);
23312329
outline,
23322330
&identity,
23332331
TRUE);
2334-
#endif
23352332

23362333
PATH_add_outline(dc, pPath, x + offset.x, y + offset.y, outline, dwSize);
23372334

23382335
ExFreePoolWithTag(outline, TAG_PATH);
23392336
}
2340-
2337+
#endif
23412338
if (dx)
23422339
{
23432340
if (flags & ETO_PDY)

0 commit comments

Comments
 (0)