summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-11-12 21:02:49 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-11-12 21:02:49 +0100
commite4f2fcc0ecd31322df65141edf0ddbff9c075f5d (patch)
tree882b9662d9637700eaaec6c5dc2555c9bc34db8f /video
parent84dcb76f27fa130c825f70c4fa577ca0e4a162be (diff)
downloadmpv-e4f2fcc0ecd31322df65141edf0ddbff9c075f5d.tar.bz2
mpv-e4f2fcc0ecd31322df65141edf0ddbff9c075f5d.tar.xz
waylad: implement functionality for window-scaling
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 710dbd44c4..ddbf7459c5 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -906,6 +906,18 @@ int vo_wayland_control (struct vo *vo, int *events, int request, void *arg)
case VOCTRL_UPDATE_SCREENINFO:
vo_wayland_update_screeninfo(vo);
return VO_TRUE;
+ case VOCTRL_GET_WINDOW_SIZE: {
+ int *s = arg;
+ s[0] = wl->window.width;
+ s[1] = wl->window.height;
+ return VO_TRUE;
+ }
+ case VOCTRL_SET_WINDOW_SIZE: {
+ int *s = arg;
+ if (!wl->window.is_fullscreen)
+ shedule_resize(wl, 0, s[0], s[1]);
+ return VO_TRUE;
+ }
case VOCTRL_SET_CURSOR_VISIBILITY:
if (*(bool *)arg) {
if (!wl->cursor.visible)