Index: dlls/ddraw/ddraw_hal.c =================================================================== RCS file: /home/wine/wine/dlls/ddraw/ddraw_hal.c,v retrieving revision 1.2 diff -u -r1.2 ddraw_hal.c --- dlls/ddraw/ddraw_hal.c 26 Jul 2005 20:10:51 -0000 1.2 +++ dlls/ddraw/ddraw_hal.c 23 Apr 2006 05:09:47 -0000 @@ -500,6 +500,15 @@ IDirectDrawImpl *This = (IDirectDrawImpl *)iface; HRESULT hr; + + //As shameful hacks go, this one is both very shameful and very hacky. + HDC dc = CreateDCA("DISPLAY", NULL, NULL, NULL); + DCICMD cmd; + cmd.dwVersion = DD_VERSION; + cmd.dwReserved = 0; + cmd.dwCommand = DDCREATEDRIVEROBJECT; + ExtEscape(dc, DCICOMMAND, sizeof(cmd), (LPVOID)&cmd, sizeof(hal_instance), (LPVOID)&hal_instance); + DeleteDC(dc); TRACE("(%p)->(%ldx%ldx%ld,%ld Hz,%08lx)\n",This,dwWidth,dwHeight,dwBPP,dwRefreshRate,dwFlags); hr = User_DirectDraw_SetDisplayMode(iface, dwWidth, dwHeight, dwBPP,