Skip to content

Commit

Permalink
replacing enum SDL_DISPLAYEVENT_DISCONNECTED with it's value
Browse files Browse the repository at this point in the history
  • Loading branch information
MaMadDl committed Mar 28, 2024
1 parent 593b967 commit 222d1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/localevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ bool LocalEvent::HandleEvents( const bool sleepAfterEventProcessing, const bool
DEBUG_LOG( DBG_ENGINE, DBG_WARN, "OS indicates low memory. Release some resources." )
break;
case SDL_DISPLAYEVENT:
if ( event.display.event == SDL_DisplayEventID::SDL_DISPLAYEVENT_DISCONNECTED ) {
if ( event.display.event == 3 ) {
DEBUG_LOG( DBG_ENGINE, DBG_INFO, "The display with id %d was disconnected " << event.display.display );
engine.setDisplayIndex( engine.getCurrentDisplayIndex() );

Expand Down

0 comments on commit 222d1ad

Please sign in to comment.