Make OTG window resizable
PR #3219 <https://github.com/Genymobile/scrcpy/pull/3219>
This commit is contained in:
parent
fc8942aa03
commit
436b368f9d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue