[FORMATTING] Fix indentation, no code change

svn path=/trunk/; revision=41653
This commit is contained in:
Timo Kreuzer 2009-06-27 23:54:02 +00:00
parent 36526f9157
commit 1fc4b3e8ca

View file

@ -70,49 +70,56 @@ HDC hSystemBM;
/* GDI stock objects */
static LOGPEN WhitePen =
{ PS_SOLID, { 0, 0 }, RGB(255,255,255) };
{ PS_SOLID, { 0, 0 }, RGB(255,255,255) };
static LOGPEN BlackPen =
{ PS_SOLID, { 0, 0 }, RGB(0,0,0) };
{ PS_SOLID, { 0, 0 }, RGB(0,0,0) };
static LOGPEN NullPen =
{ PS_NULL, { 0, 0 }, 0 };
{ PS_NULL, { 0, 0 }, 0 };
static LOGFONTW OEMFixedFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, OEM_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New" }; //Bitstream Vera Sans Mono
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, OEM_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New"
}; //Bitstream Vera Sans Mono
static LOGFONTW AnsiFixedFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New" }; //Bitstream Vera Sans Mono
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New"
}; //Bitstream Vera Sans Mono
static LOGFONTW AnsiVarFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif" };
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif"
};
static LOGFONTW SystemFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"Courier New" }; //Bitstream Vera Sans
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"Courier New"
}; //Bitstream Vera Sans
static LOGFONTW DeviceDefaultFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif" }; //Bitstream Vera Sans
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif"
}; //Bitstream Vera Sans
static LOGFONTW SystemFixedFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New" }; //Bitstream Vera Sans Mono
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, L"Courier New"
}; //Bitstream Vera Sans Mono
/* FIXME: Is this correct? */
static LOGFONTW DefaultGuiFont =
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif" }; //Bitstream Vera Sans
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif"
}; //Bitstream Vera Sans
HGDIOBJ StockObjects[NB_STOCK_OBJECTS];
static
HPEN
FASTCALL
IntCreateStockPen( DWORD dwPenStyle,
IntCreateStockPen(DWORD dwPenStyle,
DWORD dwWidth,
ULONG ulBrushStyle,
ULONG ulColor)
@ -217,9 +224,9 @@ IntSetSysColors(UINT nColors, INT *Elements, COLORREF *Colors)
ASSERT(Elements);
ASSERT(Colors);
for(i = 0; i < nColors; i++)
for (i = 0; i < nColors; i++)
{
if((UINT)(*Elements) < NUM_SYSCOLORS)
if ((UINT)(*Elements) < NUM_SYSCOLORS)
{
gpsi->argbSystem[*Elements] = *Colors;
IntGdiSetSolidBrushColor(gpsi->ahbrSystem[*Elements], *Colors);
@ -238,13 +245,13 @@ IntGetSysColorBrushes(HBRUSH *pahBrushes, UINT nBrushes)
ASSERT(pahBrushes);
if(nBrushes > NUM_SYSCOLORS)
if (nBrushes > NUM_SYSCOLORS)
{
SetLastWin32Error(ERROR_INVALID_PARAMETER);
return FALSE;
}
for(i = 0; i < nBrushes; i++)
for (i = 0; i < nBrushes; i++)
{
pahBrushes[i] = gpsi->ahbrSystem[i];
}
@ -265,13 +272,13 @@ IntGetSysColorPens(HPEN *Pens, UINT nPens)
ASSERT(Pens);
if(nPens > NUM_SYSCOLORS)
if (nPens > NUM_SYSCOLORS)
{
SetLastWin32Error(ERROR_INVALID_PARAMETER);
return FALSE;
}
for(i = 0; i < nPens; i++)
for (i = 0; i < nPens; i++)
{
*(Pens++) = gpsi->SysColorPens[i];
}
@ -287,14 +294,14 @@ IntGetSysColors(COLORREF *Colors, UINT nColors)
ASSERT(Colors);
if(nColors > NUM_SYSCOLORS)
if (nColors > NUM_SYSCOLORS)
{
SetLastWin32Error(ERROR_INVALID_PARAMETER);
return FALSE;
}
col = &gpsi->argbSystem[0];
for(i = 0; i < nColors; i++)
for (i = 0; i < nColors; i++)
{
*(Colors++) = *(col++);
}
@ -314,18 +321,18 @@ CreateSysColorObjects(VOID)
UINT i;
LOGPEN Pen;
for(i = 0; i < NUM_SYSCOLORS; i++)
for (i = 0; i < NUM_SYSCOLORS; i++)
{
gpsi->argbSystem[i] = SysColors[i];
}
/* Create the syscolor brushes */
for(i = 0; i < NUM_SYSCOLORS; i++)
for (i = 0; i < NUM_SYSCOLORS; i++)
{
if(gpsi->ahbrSystem[i] == NULL)
if (gpsi->ahbrSystem[i] == NULL)
{
gpsi->ahbrSystem[i] = IntGdiCreateSolidBrush(SysColors[i]);
if(gpsi->ahbrSystem[i] != NULL)
if (gpsi->ahbrSystem[i] != NULL)
{
GDIOBJ_ConvertToStockObj((HGDIOBJ*)&gpsi->ahbrSystem[i]);
}
@ -336,13 +343,13 @@ CreateSysColorObjects(VOID)
Pen.lopnStyle = PS_SOLID;
Pen.lopnWidth.x = 0;
Pen.lopnWidth.y = 0;
for(i = 0; i < NUM_SYSCOLORS; i++)
for (i = 0; i < NUM_SYSCOLORS; i++)
{
if(gpsi->SysColorPens[i] == NULL)
if (gpsi->SysColorPens[i] == NULL)
{
Pen.lopnColor = SysColors[i];
gpsi->SysColorPens[i] = IntCreateStockPen(Pen.lopnStyle, Pen.lopnWidth.x, BS_SOLID, Pen.lopnColor);
if(gpsi->SysColorPens[i] != NULL)
if (gpsi->SysColorPens[i] != NULL)
{
GDIOBJ_ConvertToStockObj((HGDIOBJ*)&gpsi->SysColorPens[i]);
}