mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Always set hints
Some hints can be useful even when window is dsabled.
This commit is contained in:
parent
930cf6a1bc
commit
d44cba26f2
1 changed files with 3 additions and 5 deletions
|
|
@ -486,11 +486,9 @@ scrcpy(struct scrcpy_options *options) {
|
|||
return SCRCPY_EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (options->window) {
|
||||
// Set hints before starting the server thread to avoid race conditions
|
||||
// in SDL
|
||||
sdl_set_hints(options->render_driver);
|
||||
}
|
||||
// Set hints before starting the server thread to avoid race conditions in
|
||||
// SDL
|
||||
sdl_set_hints(options->render_driver);
|
||||
|
||||
if (!sc_server_start(&s->server)) {
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue