|
|
@ -394,6 +394,7 @@ scrcpy(const struct scrcpy_options *options) {
|
|
|
|
.window_borderless = options->window_borderless,
|
|
|
|
.window_borderless = options->window_borderless,
|
|
|
|
.rotation = options->rotation,
|
|
|
|
.rotation = options->rotation,
|
|
|
|
.mipmaps = options->mipmaps,
|
|
|
|
.mipmaps = options->mipmaps,
|
|
|
|
|
|
|
|
.fullscreen = options->fullscreen,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (!screen_init(&screen, &video_buffer, &fps_counter,
|
|
|
|
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'");
|
|
|
|
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
|
|
|
|
// now we consumed the header values, the socket receives the video stream
|
|
|
|