Bug 985 - MSC math.h / M_PI issue
* clutter/cogl/gl/cogl.c (set_clip_plane): * clutter/clutter-alpha.c (sinc_func): Use G_PI instead of M_PI because M_PI isn't defined in MSVC without a special #define. Thanks to Haakon Sporsheim
This commit is contained in:
parent
1ec582becb
commit
add02e70a3
@ -420,7 +420,7 @@ set_clip_plane (GLint plane_num,
|
|||||||
/* Calculate the angle between the axes and the line crossing the
|
/* Calculate the angle between the axes and the line crossing the
|
||||||
two points */
|
two points */
|
||||||
angle = atan2f ((vertex_b[1] - vertex_a[1]),
|
angle = atan2f ((vertex_b[1] - vertex_a[1]),
|
||||||
(vertex_b[0] - vertex_a[0])) * 180.0f / M_PI;
|
(vertex_b[0] - vertex_a[0])) * 180.0f / G_PI;
|
||||||
|
|
||||||
GE( glPushMatrix () );
|
GE( glPushMatrix () );
|
||||||
/* Load the identity matrix and multiply by the reverse of the
|
/* Load the identity matrix and multiply by the reverse of the
|
||||||
|
Loading…
Reference in New Issue
Block a user