Set initial fullscreen from screen.c

This commit is contained in:
Romain Vimont
2021-04-13 22:10:45 +02:00
parent c6d7f5ee96
commit 65c4f487b3
3 changed files with 7 additions and 4 deletions

View File

@@ -394,6 +394,7 @@ scrcpy(const struct scrcpy_options *options) {
.window_borderless = options->window_borderless,
.rotation = options->rotation,
.mipmaps = options->mipmaps,
.fullscreen = options->fullscreen,
};
if (!screen_init(&screen, &video_buffer, &fps_counter,
@@ -411,10 +412,6 @@ scrcpy(const struct scrcpy_options *options) {
LOGW("Could not request 'set screen power mode'");
}
}
if (options->fullscreen) {
screen_switch_fullscreen(&screen);
}
}
// now we consumed the header values, the socket receives the video stream