[ros-dev] Re: [ros-diffs] [mbosma] 17213: Fix another bug thanks to
GreatLord.
Royce Mitchell III
royce3 at ev1.net
Mon Aug 8 18:27:47 CEST 2005
mbosma at svn.reactos.com wrote:
>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);
>
>
I wondered about this when I first saw it. What about GetDC(NULL) ?
More information about the Ros-dev
mailing list