[vlc-commits] egl: remove position offsets

Rémi Denis-Courmont git at videolan.org
Sun May 20 21:52:09 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at 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)



More information about the vlc-commits mailing list