Skip to content

Commit

Permalink
Make OTG window resizable
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1v committed Apr 28, 2022
1 parent fc8942a commit 436b368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/usb/screen_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ 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;
uint32_t window_flags = SDL_WINDOW_ALLOW_HIGHDPI
| SDL_WINDOW_RESIZABLE;
if (params->always_on_top) {
window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;
}
Expand Down

0 comments on commit 436b368

Please sign in to comment.