Do not init SDL video subsystem if no display

The SDL video subsystem is not necessary if we don't display the video.

Move the sdl_init_and_configure() function from screen.c to scrcpy.c,
because it is not only related to the screen display.
This commit is contained in:
Romain Vimont
2019-03-03 01:40:03 +01:00
parent 8595862005
commit 6baed8a06f
3 changed files with 38 additions and 35 deletions

View File

@@ -38,10 +38,6 @@ struct screen {
.no_window = false, \
}
// init SDL and set appropriate hints
bool
sdl_init_and_configure(void);
// initialize default values
void
screen_init(struct screen *screen);