GUI: don't draw at all when minimized
This commit is contained in:
parent
51883f698a
commit
c58ff8e37c
2 changed files with 5 additions and 3 deletions
|
|
@ -3413,6 +3413,11 @@ bool FurnaceGUI::loop() {
|
|||
|
||||
eventTimeEnd=SDL_GetPerformanceCounter();
|
||||
|
||||
if (SDL_GetWindowFlags(sdlWin)&SDL_WINDOW_MINIMIZED) {
|
||||
SDL_Delay(100);
|
||||
continue;
|
||||
}
|
||||
|
||||
layoutTimeBegin=SDL_GetPerformanceCounter();
|
||||
|
||||
ImGui_ImplSDLRenderer_NewFrame();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue