Skip to content

Commit

Permalink
Reduce verbose SDL_WINDOWEVENT event log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm authored and AJenbo committed Oct 13, 2023
1 parent 270a064 commit 1bcdd17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ void MainWndProc(const SDL_Event &event)
case SDL_WINDOWEVENT_FOCUS_GAINED:
diablo_focus_unpause();
break;
case SDL_WINDOWEVENT_MOVED:
case SDL_WINDOWEVENT_RESIZED:
case SDL_WINDOWEVENT_MAXIMIZED:
case SDL_WINDOWEVENT_ENTER:
case SDL_WINDOWEVENT_TAKE_FOCUS:
break;
default:
LogVerbose("Unhandled SDL_WINDOWEVENT event: {:d}", event.window.event);
break;
Expand Down

0 comments on commit 1bcdd17

Please sign in to comment.