[vlc-commits] OpenGL: code cleaning
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:26 2016 +0100| [d38296e626c7225932f224f220dd48f594b5ead2] | committer: Jean-Baptiste Kempf
OpenGL: code cleaning
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d38296e626c7225932f224f220dd48f594b5ead2
---
modules/video_output/opengl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 4651e5f..e68cce1 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -791,13 +791,13 @@ void vout_display_opengl_Delete(vout_display_opengl_t *vgl)
int vout_display_opengl_SetViewpoint(vout_display_opengl_t *vgl,
const vlc_viewpoint_t *p_vp)
{
-#define RAD(d) ((float) (d * M_PI / 180.f))
+#define RAD(d) ((float) ((d) * M_PI / 180.f))
float f_fov = RAD(p_vp->fov);
if (f_fov > (float) M_PI -0.001f || f_fov < 0.001f)
return VLC_EBADVAR;
if (p_vp->zoom > 1.f || p_vp->zoom < -1.f)
return VLC_EBADVAR;
- vgl->f_teta = RAD(p_vp->yaw) - (float) M_PI / 2;
+ vgl->f_teta = RAD(p_vp->yaw) - (float) M_PI_2;
vgl->f_phi = RAD(p_vp->pitch);
vgl->f_roll = RAD(p_vp->roll);
More information about the vlc-commits
mailing list