Skip to content

Commit 039205b

Browse files
committed
[WIN32K] Add/fix some comments
1 parent 765dd42 commit 039205b

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

win32ss/gdi/font/fntdrvsup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ InitFontSupport(VOID)
2727
ghsemFontDriver = EngCreateSemaphore();
2828
if (!ghsemFontDriver) return FALSE;
2929

30-
/* Initialize the global public font taböe */
30+
/* Initialize the global public font table */
3131
if (!PFT_bInit(&gpftPublic)) return FALSE;
3232

3333
return TRUE;

win32ss/gdi/font/font.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ typedef enum _FLPFE
6666
PFE_VERT_FACE = 0x0100,
6767
} FLPFE;
6868

69+
/* The PFE structure describes a Physical Font Entry */
6970
typedef struct _PFE
7071
{
7172
struct _PFF * pPFF;
@@ -98,6 +99,7 @@ typedef struct _PFEOBJ
9899
PPFE ppfe;
99100
} PFEOBJ, *PPFEOBJ;
100101

102+
/* The PFF structure describes a Physical Font File */
101103
typedef struct _PFF
102104
{
103105
ULONG sizeofThis;

win32ss/gdi/font/fontdata.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ RFONT_vXlateGlpyhs(
183183
}
184184
}
185185

186+
/* Store the glyph handle */
186187
*phg++ = hg;
187188
}
188189
}

win32ss/gdi/font/fontrsrc.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ GreGetDefaultCharset()
160160
return ANSI_CHARSET;
161161
}
162162

163+
/*!
164+
165+
\see http://msdn.microsoft.com/en-us/library/ms969909.aspx
166+
167+
*/
163168
ULONG
164169
NTAPI
165170
PFE_ulPenalty(
@@ -210,7 +215,7 @@ PFE_ulPenalty(
210215
}
211216

212217

213-
/* There are contrary claims about the font mapper behaviour towards
218+
/* There are contrary claims about the font mapper behavior towards
214219
different lfOutPrecision values between MS LOGFONT structure docs
215220
and the font mapper article. */
216221
if ((plfw->lfOutPrecision == OUT_DEVICE_PRECIS) &&
@@ -675,7 +680,7 @@ GreAddFontResourceW(
675680
return 0;
676681
}
677682

678-
/* Insert the PFF into the list */
683+
/* Insert the PFF into the font table */
679684
PFT_vInsertPFF(ppft, ppff, iFileNameHash);
680685

681686
/* Return the number of faces */

0 commit comments

Comments
 (0)