Add a new option: -n/--no-window
This option will allow scrcpy to record the stream without display. Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
@@ -17,6 +17,7 @@ struct screen {
|
||||
struct size windowed_window_size;
|
||||
SDL_bool has_frame;
|
||||
SDL_bool fullscreen;
|
||||
SDL_bool no_window;
|
||||
};
|
||||
|
||||
#define SCREEN_INITIALIZER { \
|
||||
@@ -33,6 +34,7 @@ struct screen {
|
||||
}, \
|
||||
.has_frame = SDL_FALSE, \
|
||||
.fullscreen = SDL_FALSE, \
|
||||
.no_window = SDL_FALSE, \
|
||||
}
|
||||
|
||||
// init SDL and set appropriate hints
|
||||
|
||||
Reference in New Issue
Block a user