1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix fullscreen upscaled mode

This commit is contained in:
FunkyFr3sh 2023-08-14 20:07:31 +02:00
parent f3b85780ad
commit dfd862592c

View File

@ -911,6 +911,21 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
if (g_ddraw->renderer == d3d9_render_main)
{
if (g_ddraw->nonexclusive)
{
if (IsIconic(g_ddraw->hwnd))
real_ShowWindow(g_ddraw->hwnd, SW_RESTORE);
real_SetWindowPos(
g_ddraw->hwnd,
HWND_TOPMOST,
0,
0,
g_ddraw->render.width,
g_ddraw->render.height,
swp_flags);
}
d3d9_active = d3d9_create();
if (!d3d9_active)