Skip to content

Display and control your Android device

Revert "Improve resizing workaround"

Romain Vimontead7ee4a03c9
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index c085e769..096b0794 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -109,10 +109,10 @@ static int
event_watcher(void *data, SDL_Event *event) {
(void) data;
if (event->type == SDL_WINDOWEVENT
- && event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) {
+ && event->window.event == SDL_WINDOWEVENT_RESIZED) {
// In practice, it seems to always be called from the same thread in
// that specific case. Anyway, it's just a workaround.
- screen_handle_window_event(&screen, &event->window);
+ screen_render(&screen);
}
return 0;
}