vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Sun May 20 22:36:36 2018 +0300| [df739c3e5d85fc8339e76e626307a09aa5d5871e] | committer: Rémi Denis-Courmont
egl: remove position offsets See also 3434af1e9788c8974ef8e7c920ef1c545099f610. Also fix use of uninitialized values. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df739c3e5d85fc8339e76e626307a09aa5d5871e --- modules/video_output/opengl/egl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/video_output/opengl/egl.c b/modules/video_output/opengl/egl.c index 9162675447..4543f2d66a 100644 --- a/modules/video_output/opengl/egl.c +++ b/modules/video_output/opengl/egl.c @@ -53,7 +53,6 @@ typedef struct vlc_gl_sys_t #endif #if defined (USE_PLATFORM_WAYLAND) struct wl_egl_window *window; - unsigned width, height; #endif PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR; @@ -82,11 +81,7 @@ static void Resize (vlc_gl_t *gl, unsigned width, unsigned height) { vlc_gl_sys_t *sys = gl->sys; - wl_egl_window_resize(sys->window, width, height, - (sys->width - width) / 2, - (sys->height - height) / 2); - sys->width = width; - sys->height = height; + wl_egl_window_resize(sys->window, width, height, 0, 0); } #else # define Resize (NULL) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits