[dx54] fullscreen emulation improvement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--- 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");

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux