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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user