mirror of https://github.com/Genymobile/scrcpy
Create OTG window with HIGHDPI flag
This will avoid poor quality with HiDPI displays. PR #3219 <https://github.com/Genymobile/scrcpy/pull/3219>
This commit is contained in:
parent
0fca2ad830
commit
c6d9711109
|
@ -72,7 +72,7 @@ sc_screen_otg_init(struct sc_screen_otg *screen,
|
|||
int width = 256;
|
||||
int height = 256;
|
||||
|
||||
uint32_t window_flags = 0;
|
||||
uint32_t window_flags = SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
if (params->always_on_top) {
|
||||
window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue