mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Start populating server information structure. This fixes the icon issues with other languages.
svn path=/trunk/; revision=38258
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user