fix gui not responding when the game is paused (#151)

This commit is contained in:
Alexis Murzeau authored and GitHub committed 2022-08-09 08:26:15 +03:00
1 parent 54a217c27b
commit 367f4538a3
1 file changed
+1 -1
+1 -1
View File
@@ -898,7 +898,7 @@ int winmain::ProcessWindowMessages()
{ {
static auto idleWait = 0; static auto idleWait = 0;
SDL_Event event; SDL_Event event;
if (has_focus && !single_step) if (has_focus)
{ {
idleWait = static_cast<int>(TargetFrameTime.count()); idleWait = static_cast<int>(TargetFrameTime.count());
while (SDL_PollEvent(&event)) while (SDL_PollEvent(&event))