Always set hints

Some hints can be useful even when window is dsabled.
This commit is contained in:
Romain Vimont 2026-04-06 12:10:15 +02:00
parent 930cf6a1bc
commit d44cba26f2

View file

@ -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;