[dx54] fullscreen emulation improvement
Ann and Jason Edmeades
us at the-edmeades.demon.co.uk
Sat Jun 7 17:08:16 CDT 2003
This fixes Unreal Tournament as to why the top is cut off...
Changelog
When emulating fullscreen it helps to not allocate space for menu bars
and borders. Make this window a popup window
Jason
-------------- next part --------------
--- dlls/d3d8/cvsplusdx53/directx.c 2003-06-07 17:50:33.000000000 +0100
+++ dlls/d3d8/directx.c 2003-06-07 23:46:37.000000000 +0100
@@ -965,9 +965,14 @@
#else
FIXME("Requested full screen support not implemented, expect windowed operation\n");
#endif
+
+ /* Make popup window */
+ ShowWindow(whichHWND, SW_HIDE);
+ SetWindowLongA(whichHWND, GWL_STYLE, WS_POPUP);
SetWindowPos(object->win_handle, HWND_TOP, 0, 0,
pPresentationParameters->BackBufferWidth,
pPresentationParameters->BackBufferHeight, SWP_SHOWWINDOW | SWP_FRAMECHANGED);
+ ShowWindow(whichHWND, SW_SHOW);
}
TRACE("Creating back buffer\n");
More information about the wine-patches
mailing list