Skip to content

Display and control your Android device

Always set hints

Romain Vimont003616bd2c08
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index 141e98bc..39c26bdd 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -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;