[vlc-devel] [PATCH 1/4] opengl: the zoom translation depends on the sphere radius
Steve Lhomme
robux4 at videolabs.io
Thu Nov 17 12:45:25 CET 2016
---
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
--
2.10.1.windows.1
More information about the vlc-devel
mailing list