Always set hints

Some hints can be useful even when window is dsabled.

Refs #6754 <https://github.com/Genymobile/scrcpy/pull/6754>
This commit is contained in:
Romain Vimont 2026-04-06 12:10:15 +02:00
parent 758d0a1cc0
commit 003616bd2c

View File

@ -487,11 +487,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;