[vlc-commits] OpenGL: the zoom translation depends on the sphere radius

Steve Lhomme git at videolan.org
Fri Nov 18 15:55:31 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Nov 17 12:45:25 2016 +0100| [119fb16bef9bf9fb62ee2db3f5a05fb3fd862186] | committer: Jean-Baptiste Kempf

OpenGL: the zoom translation depends on the sphere radius

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/opengl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index a05748a..4651e5f 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -815,7 +815,7 @@ int vout_display_opengl_SetViewpoint(vout_display_opengl_t *vgl,
     }
 
     vgl->f_fov  = f_fov;
-    vgl->f_zoom = p_vp->zoom * (p_vp->zoom >= 0 ? 0.5 : vgl->f_zoom_min);
+    vgl->f_zoom = p_vp->zoom * (p_vp->zoom >= 0 ? 0.5 * SPHERE_RADIUS : vgl->f_zoom_min);
 
     return VLC_SUCCESS;
 #undef RAD



More information about the vlc-commits mailing list