- Start populating server information structure. This fixes the icon issues with other languages.

svn path=/trunk/; revision=38258
This commit is contained in:
James Tabor 2008-12-22 02:52:47 +00:00
parent e48fb0b04c
commit 955a660368
3 changed files with 20 additions and 2 deletions

View file

@ -670,13 +670,13 @@ LookupIconIdFromDirectoryEx(PBYTE xdir,
{
ColorBits = 1;
}
else if (g_psi->SystemMetrics[SM_SAMEDISPLAYFORMAT] || (cFlag & LR_VGACOLOR) )
else if (cFlag & LR_VGACOLOR)
{
ColorBits = 4;
}
else
{
ColorBits = 0;
ColorBits = g_psi->BitsPixel;
}
if(bIcon)

View file

@ -277,6 +277,19 @@ typedef struct _SERVERINFO
COLORREF SysColors[COLOR_MENUBAR+1]; // GetSysColor
HBRUSH SysColorBrushes[COLOR_MENUBAR+1]; // GetSysColorBrush
HPEN SysColorPens[COLOR_MENUBAR+1]; // ReactOS exclusive
//
RECTL rcScreen;
WORD BitCount;
WORD dmLogPixels;
BYTE BitsPixel;
BYTE Planes;
WORD reserved;
DWORD PUSIFlags;
ULONG uCaretWidth;
LANGID UILangID;
UINT LastRITWasKeyboard : 1;
UINT bKeyboardPref : 1;
DWORD TimeTick;
DWORD SrvEventActivity;
} SERVERINFO, *PSERVERINFO;

View file

@ -315,6 +315,11 @@ co_IntInitializeDesktopGraphics(VOID)
NtGdiSelectFont( hSystemBM, NtGdiGetStockObject(SYSTEM_FONT));
IntGdiSetDCOwnerEx( hSystemBM, GDI_OBJ_HMGR_PUBLIC, FALSE);
// FIXME! Move these to a update routine.
gpsi->Planes = NtGdiGetDeviceCaps(ScreenDeviceContext, PLANES);
gpsi->BitsPixel = NtGdiGetDeviceCaps(ScreenDeviceContext, BITSPIXEL);
gpsi->BitCount = gpsi->Planes * gpsi->BitsPixel;
return TRUE;
}