Force window resize when SetWindowFullscreen() is called

This commit is contained in:
n00b
2024-12-11 16:02:42 -05:00
parent c354825638
commit d1d291d823
3 changed files with 8 additions and 4 deletions

View File

@@ -735,7 +735,11 @@ bool rc_setWindowFullscreen(int flag)
int w, h;
SDL_GetWindowSize(rc_window, &w, &h);
SDL_SetWindowSize(rc_window, w, h);
if(flag)
SDL_SetWindowSize(rc_window, w, h);
else
SDL_SetWindowSize(rc_window, rc_window_size.Width, rc_window_size.Height);
//irr::core::dimension2d<u32> win_size(w, h);
//device->setWindowSize(win_size);

View File

@@ -2,7 +2,7 @@
#define RC_OS_DEFINES_H_INCLUDED
//USED FOR TESTING ONLY
//#define RC_TESTING
#define RC_TESTING
//I am checking Android first since I think it also defines __linux__

View File

@@ -32,7 +32,7 @@
<irrtheora.h>
"rc_func130_cases.h"
1733944095 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
1733950891 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
<TargetConditionals.h>
1733777902 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_defines.h
@@ -1247,7 +1247,7 @@
1727545973 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/RealisticWater.h
<irrlicht.h>
1733949891 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_gfx.h
1733950856 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_gfx.h
"SDL.h"
<SDL2/SDL.h>
<irrlicht.h>