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

Steve Lhomme git at videolan.org
Fri Nov 18 15:47:33 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Nov 17 12:45:25 2016 +0100| [eaf8e3959e288dc9c6a9d1e89fdefe0affc36ac2] | 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=eaf8e3959e288dc9c6a9d1e89fdefe0affc36ac2
---

 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..c76fb5c 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 : vgl->f_zoom_min) * SPHERE_RADIUS;
 
     return VLC_SUCCESS;
 #undef RAD



More information about the vlc-commits mailing list