[3/5] wined3d: Use SetupFullscreenWindow() to make the window
fullscreen
H. Verbeet
hverbeet at gmail.com
Thu Jan 18 16:41:43 CST 2007
Changelog:
- Use SetupFullscreenWindow() to make the window fullscreen
-------------- next part --------------
---
dlls/wined3d/device.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1572b10..2f95fb1 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1512,7 +1512,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
HDC hdc;
int bpp = 0;
RECT clip_rc;
- DWORD style;
/* Get info on the current display setup */
hdc = GetDC(0);
@@ -1528,19 +1527,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
MultiByteToWideChar(CP_ACP, 0, "Gamers CG", -1, devmode.dmDeviceName, CCHDEVICENAME);
ChangeDisplaySettingsExW(devmode.dmDeviceName, &devmode, object->win_handle, CDS_FULLSCREEN, NULL);
- /* Make popup window, remove caption and borders */
- style = GetWindowLongW(object->win_handle, GWL_STYLE);
- style &= ~WS_CAPTION;
- SetWindowLongW(object->win_handle, GWL_STYLE, style | WS_POPUP);
- SetWindowPos(object->win_handle, HWND_TOP, 0, 0,
- *(pPresentationParameters->BackBufferWidth),
- *(pPresentationParameters->BackBufferHeight), SWP_FRAMECHANGED);
-
/* For GetDisplayMode */
This->ddraw_width = devmode.dmPelsWidth;
This->ddraw_height = devmode.dmPelsHeight;
This->ddraw_format = *(pPresentationParameters->BackBufferFormat);
+ IWineD3DDeviceImpl_SetupFullscreenWindow(iface, object->win_handle);
+
/* And finally clip mouse to our screen */
SetRect(&clip_rc, 0, 0, devmode.dmPelsWidth, devmode.dmPelsHeight);
ClipCursor(&clip_rc);
More information about the wine-patches
mailing list