mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
#311 fix fullscreen issues with opengl/gdi in nancy drew games
This commit is contained in:
parent
e3b05ea108
commit
b55593cb4c
14
src/dd.c
14
src/dd.c
@ -916,6 +916,13 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
||||
real_SetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_TOOLWINDOW));
|
||||
}
|
||||
|
||||
exstyle = real_GetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE);
|
||||
|
||||
if ((exstyle & WS_EX_CLIENTEDGE))
|
||||
{
|
||||
real_SetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_CLIENTEDGE));
|
||||
}
|
||||
|
||||
if (IsWine())
|
||||
{
|
||||
real_SetWindowLongA(
|
||||
@ -1019,6 +1026,13 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
||||
real_SetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_TOOLWINDOW));
|
||||
}
|
||||
|
||||
exstyle = real_GetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE);
|
||||
|
||||
if ((exstyle & WS_EX_CLIENTEDGE))
|
||||
{
|
||||
real_SetWindowLongA(g_ddraw.hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_CLIENTEDGE));
|
||||
}
|
||||
|
||||
BOOL d3d9_active = FALSE;
|
||||
|
||||
if (g_ddraw.renderer == d3d9_render_main)
|
||||
|
Loading…
x
Reference in New Issue
Block a user