[ros-diffs] [mbosma] 17213: Fix another bug thanks to GreatLord.
mbosma at svn.reactos.com
mbosma at svn.reactos.com
Mon Aug 8 18:18:55 CEST 2005
Fix another bug thanks to GreatLord.
Modified: trunk/reactos/lib/ddraw/main/ddraw.c
_____
Modified: trunk/reactos/lib/ddraw/main/ddraw.c
--- trunk/reactos/lib/ddraw/main/ddraw.c 2005-08-08 16:09:48 UTC
(rev 17212)
+++ trunk/reactos/lib/ddraw/main/ddraw.c 2005-08-08 16:18:44 UTC
(rev 17213)
@@ -24,7 +24,7 @@
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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050808/e0dd100c/attachment.html
More information about the Ros-diffs
mailing list