[cogl.h.in.0.patch] Fixes the cogl_rotatex prototype to take float x,y,z params

The cogl_rotatex was incorrectly defined to take gint x,y,z params as opposed
to CoglFixed. This patch changes them directly to floats.
This commit is contained in:
Robert Bragg 2009-01-12 17:07:55 +00:00
parent de27da0e5b
commit 010fd71059
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
diff --git a/clutter/cogl/cogl.h.in b/clutter/cogl/cogl.h.in
index cc26f88..f37d54d 100644
--- a/clutter/cogl/cogl.h.in
+++ b/clutter/cogl/cogl.h.in
@@ -271,9 +271,9 @@ void cogl_translate (gint x,
* rotation.
*/
void cogl_rotatex (float angle,
- gint x,
- gint y,
- gint z);
+ float x,
+ float y,
+ float z);
/**
* cogl_rotate:
@@ -442,7 +442,7 @@ void cogl_enable_backface_culling (gboolean setting);
* comparing with the value in @ref. The default function is CGL_ALWAYS the
* initial reference value is 1.0.
*/
-void cogl_alpha_func (COGLenum func,
+void cogl_alpha_func (COGLenum func,
float ref);
/**

View File

@ -150,6 +150,7 @@ patch -p1<fixed-to-float-patches/gles-cogl.c.0.patch
patch -p1<fixed-to-float-patches/gles-cogl-gles2-wrapper.h.0.patch patch -p1<fixed-to-float-patches/gles-cogl-gles2-wrapper.h.0.patch
patch -p1<fixed-to-float-patches/gles-cogl-primitives.c.0.patch patch -p1<fixed-to-float-patches/gles-cogl-primitives.c.0.patch
patch -p1<fixed-to-float-patches/gles-cogl-texture.c.0.patch patch -p1<fixed-to-float-patches/gles-cogl-texture.c.0.patch
patch -p1<fixed-to-float-patches/cogl.h.in.0.patch
#XXX: COGL_PANGO_UNIT_TO_FIXED #XXX: COGL_PANGO_UNIT_TO_FIXED