mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Handle window resizing in screen
Only the screen knows what to do when the window is resized. This paves the way to do other actions on window resizing.
This commit is contained in:
parent
683f7ca848
commit
39ff8d9900
3 changed files with 12 additions and 1 deletions
|
|
@ -278,6 +278,11 @@ screen_update_frame(struct screen *screen, struct video_buffer *vb) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
screen_window_resized(struct screen *screen) {
|
||||
screen_render(screen);
|
||||
}
|
||||
|
||||
void
|
||||
screen_render(struct screen *screen) {
|
||||
SDL_RenderClear(screen->renderer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue