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:
CapsLock
2019-02-01 22:53:24 +01:00
committed by Romain Vimont
parent e6e011baaf
commit 421a1141e2
3 changed files with 23 additions and 1 deletions

View File

@@ -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