From e4f2fcc0ecd31322df65141edf0ddbff9c075f5d Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Tue, 12 Nov 2013 21:02:49 +0100 Subject: waylad: implement functionality for window-scaling --- video/out/wayland_common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'video') 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) -- cgit v1.2.3