From d83ab72e6989e9565466406143633bc0eafc4ace Mon Sep 17 00:00:00 2001 From: Maarten Bosma Date: Mon, 8 Aug 2005 16:18:44 +0000 Subject: [PATCH] Fix another bug thanks to GreatLord. svn path=/trunk/; revision=17213 --- reactos/lib/ddraw/main/ddraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/ddraw/main/ddraw.c b/reactos/lib/ddraw/main/ddraw.c index 8dab4c50528..8ff45373252 100644 --- a/reactos/lib/ddraw/main/ddraw.c +++ b/reactos/lib/ddraw/main/ddraw.c @@ -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);