diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-31 19:19:44 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-31 21:52:16 +0200 |
commit | 6443a9b16cf48b963353b2917f906ea409757e12 (patch) | |
tree | abcb24be32663ec88fae7276cffcd5b080659b3a /video/out/gl_wayland.c | |
parent | 03bef3adfd846fc1dda88a888df972f4b501fb40 (diff) | |
download | mpv-6443a9b16cf48b963353b2917f906ea409757e12.tar.bz2 mpv-6443a9b16cf48b963353b2917f906ea409757e12.tar.xz |
wayland: switch to the new mp_msg api
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r-- | video/out/gl_wayland.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c index 1b5a21ec43..0381177292 100644 --- a/video/out/gl_wayland.c +++ b/video/out/gl_wayland.c @@ -27,6 +27,7 @@ #include "gl_common.h" struct egl_context { + struct mp_log *log; EGLSurface egl_surface; struct wl_egl_window *egl_window; @@ -96,6 +97,8 @@ static void egl_resize_func(struct vo_wayland_state *wl, else y = 0; + MP_VERBOSE(ctx, "resizing %dx%d -> %dx%d\n", wl->window.width, + wl->window.height, width, height); wl_egl_window_resize(ctx->egl_window, width, height, x, y); wl->window.width = width; @@ -134,6 +137,8 @@ static bool egl_create_context(struct vo_wayland_state *wl, if (eglInitialize(egl_ctx->egl.dpy, &major, &minor) != EGL_TRUE) return false; + MP_VERBOSE(egl_ctx, "EGL version %d.%d\n", major, minor); + EGLint context_attribs[] = { EGL_CONTEXT_MAJOR_VERSION_KHR, MPGL_VER_GET_MAJOR(ctx->requested_gl_version), @@ -210,6 +215,8 @@ static bool config_window_wayland(struct MPGLContext *ctx, bool enable_alpha = !!(flags & VOFLAG_ALPHA); bool ret = false; + egl_ctx->log = mp_log_new(egl_ctx, wl->log, "EGL"); + wl->window.resize_func = egl_resize_func; wl->window.resize_func_data = (void*) egl_ctx; |