We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1505cff commit cb51ed3Copy full SHA for cb51ed3
engine/system/win/sys_video.cpp
@@ -668,9 +668,13 @@ bool sys_video_c::IsActive()
668
return glfwGetWindowAttrib(wnd, GLFW_FOCUSED);
669
}
670
671
-void sys_video_c::FramebufferSizeChanged(int width, int height) {
672
- vid.fbSize[0] = width;
673
- vid.fbSize[1] = height;
+void sys_video_c::FramebufferSizeChanged(int width, int height)
+{
+ // Avoid persisting an invalid window size from being minimized.
674
+ if (!glfwGetWindowAttrib(wnd, GLFW_ICONIFIED)) {
675
+ vid.fbSize[0] = width;
676
+ vid.fbSize[1] = height;
677
+ }
678
679
680
void sys_video_c::SizeChanged(int width, int height, bool max)
0 commit comments