diff options
author | wm4 <wm4@nowhere> | 2014-05-06 23:16:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-06 23:16:18 +0200 |
commit | b51664c04a2b150085c0bc7d96f60241ee339328 (patch) | |
tree | 84cf58ea3d66be2cf8a85951c1dd601025e1f9c4 /video/out/gl_wayland.c | |
parent | 41b1ed7b2e227ef27310b0a8d2c6a5772fcf95e8 (diff) | |
download | mpv-b51664c04a2b150085c0bc7d96f60241ee339328.tar.bz2 mpv-b51664c04a2b150085c0bc7d96f60241ee339328.tar.xz |
wayland: don't use VOCTRL_UPDATE_SCREENINFO
Not very tested. Appears to work.
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r-- | video/out/gl_wayland.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c index 3decda4bb6..83c8af7503 100644 --- a/video/out/gl_wayland.c +++ b/video/out/gl_wayland.c @@ -127,9 +127,7 @@ static bool egl_create_context(struct vo_wayland_state *wl, return true; } -static void egl_create_window(struct vo_wayland_state *wl, - uint32_t width, - uint32_t height) +static void egl_create_window(struct vo_wayland_state *wl) { wl->egl_context.egl_window = wl_egl_window_create(wl->window.video_surface, wl->window.width, @@ -157,7 +155,7 @@ static bool config_window_wayland(struct MPGLContext *ctx, bool enable_alpha = !!(flags & VOFLAG_ALPHA); bool ret = false; - if (!vo_wayland_config(ctx->vo, d_width, d_height, flags)) + if (!vo_wayland_config(ctx->vo, flags)) return false; if (!wl->egl_context.egl.ctx) { @@ -167,7 +165,7 @@ static bool config_window_wayland(struct MPGLContext *ctx, /* If successfully created the context and we don't want to hide the * window than also create the window immediately */ if (ret && !(VOFLAG_HIDDEN & flags)) - egl_create_window(wl, d_width, d_height); + egl_create_window(wl); return ret; } @@ -176,7 +174,7 @@ static bool config_window_wayland(struct MPGLContext *ctx, /* If the context exists and the hidden flag is unset then * create the window */ if (!(VOFLAG_HIDDEN & flags)) - egl_create_window(wl, d_width, d_height); + egl_create_window(wl); } return true; } |