Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions engine/system/win/sys_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,13 @@ bool sys_video_c::IsActive()
return glfwGetWindowAttrib(wnd, GLFW_FOCUSED);
}

void sys_video_c::FramebufferSizeChanged(int width, int height) {
vid.fbSize[0] = width;
vid.fbSize[1] = height;
void sys_video_c::FramebufferSizeChanged(int width, int height)
{
// Avoid persisting an invalid window size from being minimized.
if (!glfwGetWindowAttrib(wnd, GLFW_ICONIFIED)) {
vid.fbSize[0] = width;
vid.fbSize[1] = height;
}
}

void sys_video_c::SizeChanged(int width, int height, bool max)
Expand Down
Loading