Fixed custom resolution setting sometimes being ignored.
This commit is contained in:
parent
2505dee5e8
commit
e3052075a7
1 changed files with 1 additions and 0 deletions
|
|
@ -862,6 +862,7 @@ int render()
|
||||||
|
|
||||||
if (win_doresize)
|
if (win_doresize)
|
||||||
{
|
{
|
||||||
|
int flags = SDL_GetWindowFlags(window);
|
||||||
win_doresize = 0;
|
win_doresize = 0;
|
||||||
if (!vid_resize || (flags&SDL_WINDOW_FULLSCREEN)) {
|
if (!vid_resize || (flags&SDL_WINDOW_FULLSCREEN)) {
|
||||||
SDL_GetWindowSize(window, &rect.w, &rect.h);
|
SDL_GetWindowSize(window, &rect.w, &rect.h);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue