[FORMATTING]

Fix indentation. No code change.

svn path=/trunk/; revision=38199
This commit is contained in:
Timo Kreuzer 2008-12-20 19:43:11 +00:00
parent 35568f58b0
commit 93d4ecb9e8

View file

@ -58,7 +58,8 @@
FT_Library library;
typedef struct _FONT_ENTRY {
typedef struct _FONT_ENTRY
{
LIST_ENTRY ListEntry;
FONTGDI *Font;
UNICODE_STRING FaceName;
@ -77,7 +78,8 @@ static BOOL RenderingEnabled = TRUE;
UINT Hits;
UINT Misses;
typedef struct _FONT_CACHE_ENTRY {
typedef struct _FONT_CACHE_ENTRY
{
LIST_ENTRY ListEntry;
int GlyphIndex;
FT_Face Face;
@ -87,7 +89,8 @@ typedef struct _FONT_CACHE_ENTRY {
static LIST_ENTRY FontCacheListHead;
static UINT FontCacheNumEntries;
static PWCHAR ElfScripts[32] = { /* these are in the order of the fsCsb[0] bits */
static PWCHAR ElfScripts[32] = /* these are in the order of the fsCsb[0] bits */
{
L"Western", /*00*/
L"Central_European",
L"Cyrillic",
@ -114,7 +117,8 @@ static PWCHAR ElfScripts[32] = { /* these are in the order of the fsCsb[0] bits
*/
#define CP_SYMBOL 42
#define MAXTCIINDEX 32
static const CHARSETINFO FontTci[MAXTCIINDEX] = {
static const CHARSETINFO FontTci[MAXTCIINDEX] =
{
/* ANSI */
{ ANSI_CHARSET, 1252, {{0,0,0,0},{FS_LATIN1,0}} },
{ EASTEUROPE_CHARSET, 1250, {{0,0,0,0},{FS_LATIN2,0}} },
@ -166,7 +170,8 @@ InitFontSupport(VOID)
ExInitializeFastMutex(&FreeTypeLock);
ulError = FT_Init_FreeType(&library);
if (ulError) {
if (ulError)
{
DPRINT1("FT_Init_FreeType failed with error code 0x%x\n", ulError);
return FALSE;
}
@ -1309,7 +1314,8 @@ ftGdiGlyphCacheGet(
CurrentEntry = CurrentEntry->Flink;
}
if (CurrentEntry == &FontCacheListHead) {
if (CurrentEntry == &FontCacheListHead)
{
// DbgPrint("Miss! %x\n", FontEntry->Glyph);
/*
Misses++;
@ -1377,7 +1383,8 @@ ftGdiGlyphCacheSet(
NewEntry->Height = Height;
InsertHeadList(&FontCacheListHead, &NewEntry->ListEntry);
if (FontCacheNumEntries++ > MAX_FONT_CACHE) {
if (FontCacheNumEntries++ > MAX_FONT_CACHE)
{
NewEntry = (PFONT_CACHE_ENTRY)FontCacheListHead.Blink;
FT_Done_Glyph(NewEntry->Glyph);
RemoveTailList(&FontCacheListHead);
@ -1882,7 +1889,8 @@ ftGdiGetGlyphOutline(
FTVectorToPOINTFX(&outline->points[point], &ppc->apfx[cpfx]);
cpfx++;
point++;
} while(point <= outline->contours[contour] &&
}
while (point <= outline->contours[contour] &&
(outline->tags[point] & FT_Curve_Tag_On) ==
(outline->tags[point-1] & FT_Curve_Tag_On));
@ -3217,7 +3225,8 @@ NtGdiExtTextOutW(
SurfObj = &BitmapObj->SurfObj;
ASSERT(SurfObj);
Start.x = XStart; Start.y = YStart;
Start.x = XStart;
Start.y = YStart;
IntLPtoDP(dc, &Start, 1);
RealXStart = (Start.x + dc->ptlDCOrig.x) << 6;