Skip to content

Commit

Permalink
Revert "Make OTG window resizable"
Browse files Browse the repository at this point in the history
On Windows and macOS, resizing blocks the event loop. Handling it
properly would require the same workaround as done in screen.c.

This reverts commit 436b368.
  • Loading branch information
rom1v committed Apr 28, 2022
1 parent 76b3fcf commit 2f038c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/usb/screen_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ sc_screen_otg_init(struct sc_screen_otg *screen,
int width = params->window_width ? params->window_width : 256;
int height = params->window_height ? params->window_height : 256;

uint32_t window_flags = SDL_WINDOW_ALLOW_HIGHDPI
| SDL_WINDOW_RESIZABLE;
uint32_t window_flags = SDL_WINDOW_ALLOW_HIGHDPI;
if (params->always_on_top) {
window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;
}
Expand Down

0 comments on commit 2f038c8

Please sign in to comment.