mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
[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:
parent
de27da0e5b
commit
010fd71059
26
fixed-to-float-patches/cogl.h.in.0.patch
Normal file
26
fixed-to-float-patches/cogl.h.in.0.patch
Normal 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);
|
||||||
|
|
||||||
|
/**
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user