mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +00:00
Apply resizing workaround on size changed
The "resized" event is called on user resizing only, while "size changed" is called on any resize, including at every step of a progressive resize animation.
This commit is contained in:
parent
5edd5a2617
commit
61e73b7b63
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ 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_RESIZED) {
|
&& event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) {
|
||||||
// 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_render(&screen);
|
screen_render(&screen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue