GUI: insert 100ms delay when minimized

issue #220
This commit is contained in:
tildearrow 2022-03-02 00:09:28 -05:00
parent 36e1ead643
commit 1957c19f34

View file

@ -17,6 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <SDL_video.h>
#define _USE_MATH_DEFINES
#include "gui.h"
#include "util.h"
@ -5350,6 +5351,10 @@ bool FurnaceGUI::loop() {
commitSettings();
willCommit=false;
}
if (SDL_GetWindowFlags(sdlWin)&SDL_WINDOW_MINIMIZED) {
SDL_Delay(100);
}
}
return false;
}