[vlc-commits] opengl: macosx: use vout_display_opengl_Viewport

Thomas Guillem git at videolan.org
Thu Dec 7 09:28:10 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 14:23:31 2017 +0100| [fc4f93589a39b1667b4519085d21b769ce128dd4] | committer: Thomas Guillem

opengl: macosx: use vout_display_opengl_Viewport

Refs #19093

(cherry picked from commit 30a892d147a03871611097d662a2ec5ef94dd7e0)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fc4f93589a39b1667b4519085d21b769ce128dd4
---

 modules/video_output/macosx.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index b09b23a2c0..4fae00d4de 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -410,7 +410,9 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                  This has the positive side effect that we avoid erratic sizing as we animate every resize. */
                 if (query != VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
                     // x / y are top left corner, but we need the lower left one
-                    glViewport (place.x, cfg_tmp.display.height - (place.y + place.height), place.width, place.height);
+                    vout_display_opengl_Viewport(sys->vgl, place.x,
+                                                 cfg_tmp.display.height - (place.y + place.height),
+                                                 place.width, place.height);
                 vlc_gl_ReleaseCurrent (sys->gl);
 
                 return VLC_SUCCESS;



More information about the vlc-commits mailing list