mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fix another bug thanks to GreatLord.
svn path=/trunk/; revision=17213
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user