Report errors on screen event error

Make scrcpy fail if an important screen event (like frame update) fails.
This commit is contained in:
Romain Vimont
2023-03-10 22:49:40 +01:00
parent aa1efbc35c
commit 3a72f3fb4d
3 changed files with 17 additions and 12 deletions

View File

@@ -136,7 +136,8 @@ void
sc_screen_set_rotation(struct sc_screen *screen, unsigned rotation);
// react to SDL events
void
// If this function returns false, scrcpy must exit with an error.
bool
sc_screen_handle_event(struct sc_screen *screen, SDL_Event *event);
// convert point from window coordinates to frame coordinates