Skip to content

Commit

Permalink
fix: GUI would not update on all events in some places (fixes #1186)
Browse files Browse the repository at this point in the history
There were still some windows that would not trigger an update on all events
  • Loading branch information
midwan committed Nov 25, 2023
1 parent eb2336e commit f32a4ad
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/osdep/gui/CreateFilesysHardfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ static void CreateFilesysHardfileLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/EditFilesysHardDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ static void EditFilesysHardDriveLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/EditFilesysHardfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,11 @@ static void EditFilesysHardfileLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/EditFilesysVirtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ static void EditFilesysVirtualLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/SelectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,11 @@ static void SelectFileLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/SelectFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ static void SelectFolderLoop()
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down
5 changes: 5 additions & 0 deletions src/osdep/gui/ShowDiskInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ static void ShowDiskInfoLoop()
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
case SDL_MOUSEWHEEL:
case SDL_RENDER_TARGETS_RESET:
case SDL_RENDER_DEVICE_RESET:
case SDL_WINDOWEVENT:
case SDL_DISPLAYEVENT:
case SDL_SYSWMEVENT:
got_event = 1;
break;

Expand Down

0 comments on commit f32a4ad

Please sign in to comment.