No need to create a DC to get the display depth

Incidentally, this partly unregresses the /CONSOLE switch if blue.sys is installed

svn path=/trunk/; revision=40906
This commit is contained in:
Hervé Poussineau 2009-05-12 21:48:25 +00:00
parent a640fa9dc1
commit 4535cbb145

View file

@ -396,9 +396,10 @@ BOOL SIC_Initialize(void)
return FALSE;
}
hDC = GetDC(NULL);
hDC = CreateICW(L"DISPLAY", NULL, NULL, NULL); bpp 0
if (!hDC)
{
ERR("Failed to create information context (error %d)\n", GetLastError());
return FALSE;
}