File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1363,6 +1363,8 @@ int InitPlatform(void)
1363
1363
// additionally auto iconify restores the hardware resolution of the monitor if the window that loses focus is a fullscreen window
1364
1364
glfwWindowHint (GLFW_AUTO_ICONIFY , 0 );
1365
1365
1366
+ // Keep flags to restore after initialization (for flags not supported on initialization)
1367
+ unsigned int originalCoreWindowFlags = CORE .Window .flags ;
1366
1368
// Check window creation flags
1367
1369
if ((CORE .Window .flags & FLAG_FULLSCREEN_MODE ) > 0 ) CORE .Window .fullscreen = true;
1368
1370
@@ -1730,7 +1732,10 @@ int InitPlatform(void)
1730
1732
char * glfwPlatform = "" ;
1731
1733
switch (glfwGetPlatform ())
1732
1734
{
1733
- case GLFW_PLATFORM_WIN32 : glfwPlatform = "Win32" ; break ;
1735
+ case GLFW_PLATFORM_WIN32 :
1736
+ glfwPlatform = "Win32" ;
1737
+ SetWindowState (originalCoreWindowFlags );
1738
+ break ;
1734
1739
case GLFW_PLATFORM_COCOA : glfwPlatform = "Cocoa" ; break ;
1735
1740
case GLFW_PLATFORM_WAYLAND : glfwPlatform = "Wayland" ; break ;
1736
1741
case GLFW_PLATFORM_X11 : glfwPlatform = "X11" ; break ;
You can’t perform that action at this time.
0 commit comments