Revert "Improve resizing workaround"
This reverts commit 92cb3a6661
, which
broke the fullscreen/maximized restoration size on Windows.
Fixes #1346 <https://github.com/Genymobile/scrcpy/issues/1346>
This commit is contained in:
parent
74ece9b45b
commit
ead7ee4a03
1 changed files with 2 additions and 2 deletions
|
@ -109,10 +109,10 @@ static int
|
||||||
event_watcher(void *data, SDL_Event *event) {
|
event_watcher(void *data, SDL_Event *event) {
|
||||||
(void) data;
|
(void) data;
|
||||||
if (event->type == SDL_WINDOWEVENT
|
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
|
// In practice, it seems to always be called from the same thread in
|
||||||
// that specific case. Anyway, it's just a workaround.
|
// that specific case. Anyway, it's just a workaround.
|
||||||
screen_handle_window_event(&screen, &event->window);
|
screen_render(&screen);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue