Fix another bug thanks to GreatLord.

svn path=/trunk/; revision=17213
This commit is contained in:
Maarten Bosma
2005-08-08 16:18:44 +00:00
parent c4a2110e0f
commit d83ab72e69
+1 -1
View File
@@ -24,7 +24,7 @@ HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW7 iface, LPGUID lpGUID)
This->lpGUID = lpGUID;
// get the HDC
This->hdc = CreateDC (L"Display", NULL, NULL, NULL);
This->hdc = GetWindowDC(GetDesktopWindow());
This->Height = GetDeviceCaps(This->hdc, HORZRES);
This->Width = GetDeviceCaps(This->hdc, VERTRES);
This->Bpp = GetDeviceCaps(This->hdc, BITSPIXEL);