mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
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:
parent
8595862005
commit
6baed8a06f
3 changed files with 38 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue