Skip to content

Commit

Permalink
set g_config.toggle_borderless to TRUE on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Jan 13, 2025
1 parent 6a7e862 commit 4fdbfa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl

g_config.windowed = TRUE;
g_config.fullscreen = TRUE;
g_config.toggle_borderless = TRUE;
border = FALSE;

/* prevent OpenGL from going automatically into fullscreen exclusive mode */
Expand Down Expand Up @@ -1253,6 +1254,7 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
g_ddraw.render.run = FALSE;
g_config.windowed = TRUE;
g_config.fullscreen = TRUE;
g_config.toggle_borderless = TRUE;
return dd_SetDisplayMode(dwWidth, dwHeight, dwBPP, dwFlags);
}

Expand All @@ -1269,6 +1271,7 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
g_ddraw.render.run = FALSE;
g_config.windowed = TRUE;
g_config.fullscreen = TRUE;
g_config.toggle_borderless = TRUE;
return dd_SetDisplayMode(dwWidth, dwHeight, dwBPP, dwFlags);
}
}
Expand Down

0 comments on commit 4fdbfa6

Please sign in to comment.