Skip to content

Commit

Permalink
Revert "Remove continuous resizing workaround for Windows"
Browse files Browse the repository at this point in the history
This reverts commit 18082f6.

I can't reproduce, but it seems the workaround improves the behavior on
some Windows versions.

Fixes #3640 <#3640>
Refs #3458 <#3458>
  • Loading branch information
rom1v committed Dec 26, 2022
1 parent 54c7bac commit d8c2fe6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,13 @@ sc_screen_render(struct sc_screen *screen, bool update_content_rect) {
}


#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__WINDOWS__)
# define CONTINUOUS_RESIZING_WORKAROUND
#endif

#ifdef CONTINUOUS_RESIZING_WORKAROUND
// On Windows and MacOS, resizing blocks the event loop, so resizing events are
// not triggered. On MacOS, as a workaround, handle them in an event handler
// (it does not work for Windows unfortunately).
// not triggered. As a workaround, handle them in an event handler.
//
// <https://bugzilla.libsdl.org/show_bug.cgi?id=2077>
// <https://stackoverflow.com/a/40693139/1987178>
Expand Down

0 comments on commit d8c2fe6

Please sign in to comment.