mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
[fixed-to-float-patches] Merge the two patches to remove cogl fixed params
The two patches for removing cogl apis taking fixed params have been merged into one patch.
This commit is contained in:
parent
18378fe180
commit
7b93cc068d
@ -386,7 +386,7 @@ index d815e3b..aa0ec78 100644
|
|||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
diff --git a/clutter/cogl/gles/cogl-primitives.c b/clutter/cogl/gles/cogl-primitives.c
|
diff --git a/clutter/cogl/gles/cogl-primitives.c b/clutter/cogl/gles/cogl-primitives.c
|
||||||
index d8fe121..cf305a8 100644
|
index d8fe121..1a58805 100644
|
||||||
--- a/clutter/cogl/gles/cogl-primitives.c
|
--- a/clutter/cogl/gles/cogl-primitives.c
|
||||||
+++ b/clutter/cogl/gles/cogl-primitives.c
|
+++ b/clutter/cogl/gles/cogl-primitives.c
|
||||||
@@ -39,55 +39,26 @@
|
@@ -39,55 +39,26 @@
|
||||||
@ -496,7 +496,22 @@ index d8fe121..cf305a8 100644
|
|||||||
|
|
||||||
_cogl_path_get_bounds (nodes_min, nodes_max,
|
_cogl_path_get_bounds (nodes_min, nodes_max,
|
||||||
&bounds_x, &bounds_y, &bounds_w, &bounds_h);
|
&bounds_x, &bounds_y, &bounds_w, &bounds_h);
|
||||||
@@ -436,10 +405,10 @@ _cogl_path_fill_nodes_scanlines (CoglPathNode *path,
|
@@ -245,12 +214,8 @@ _cogl_add_path_to_stencil_buffer (floatVec2 nodes_min,
|
||||||
|
GE( cogl_wrap_glMatrixMode (GL_PROJECTION) );
|
||||||
|
GE( cogl_wrap_glPushMatrix () );
|
||||||
|
GE( cogl_wrap_glLoadIdentity () );
|
||||||
|
- cogl_rectanglex (-1.0, -1.0,
|
||||||
|
- (float)(2),
|
||||||
|
- (float)(2));
|
||||||
|
- cogl_rectanglex (-1.0, -1.0,
|
||||||
|
- (float)(2),
|
||||||
|
- (float)(2));
|
||||||
|
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
||||||
|
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
||||||
|
GE( cogl_wrap_glPopMatrix () );
|
||||||
|
GE( cogl_wrap_glMatrixMode (GL_MODELVIEW) );
|
||||||
|
GE( cogl_wrap_glPopMatrix () );
|
||||||
|
@@ -436,10 +401,10 @@ _cogl_path_fill_nodes_scanlines (CoglPathNode *path,
|
||||||
void
|
void
|
||||||
_cogl_path_fill_nodes ()
|
_cogl_path_fill_nodes ()
|
||||||
{
|
{
|
||||||
@ -512,7 +527,7 @@ index d8fe121..cf305a8 100644
|
|||||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||||
|
|
||||||
diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c
|
diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c
|
||||||
index aa4e4fc..e835085 100644
|
index f8c5413..997f24a 100644
|
||||||
--- a/clutter/cogl/gles/cogl.c
|
--- a/clutter/cogl/gles/cogl.c
|
||||||
+++ b/clutter/cogl/gles/cogl.c
|
+++ b/clutter/cogl/gles/cogl.c
|
||||||
@@ -123,35 +123,15 @@ cogl_scale (float x, float y)
|
@@ -123,35 +123,15 @@ cogl_scale (float x, float y)
|
||||||
@ -554,6 +569,35 @@ index aa4e4fc..e835085 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
|
@@ -457,7 +437,7 @@ _cogl_add_stencil_clip (float x_offset,
|
||||||
|
GE( glStencilFunc (GL_NEVER, 0x1, 0x1) );
|
||||||
|
GE( glStencilOp (GL_REPLACE, GL_REPLACE, GL_REPLACE) );
|
||||||
|
|
||||||
|
- cogl_rectanglex (x_offset, y_offset, width, height);
|
||||||
|
+ cogl_rectangle (x_offset, y_offset, width, height);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@@ -465,7 +445,7 @@ _cogl_add_stencil_clip (float x_offset,
|
||||||
|
rectangle */
|
||||||
|
GE( glStencilFunc (GL_NEVER, 0x1, 0x3) );
|
||||||
|
GE( glStencilOp (GL_INCR, GL_INCR, GL_INCR) );
|
||||||
|
- cogl_rectanglex (x_offset, y_offset, width, height);
|
||||||
|
+ cogl_rectangle (x_offset, y_offset, width, height);
|
||||||
|
|
||||||
|
/* Subtract one from all pixels in the stencil buffer so that
|
||||||
|
only pixels where both the original stencil buffer and the
|
||||||
|
@@ -476,9 +456,7 @@ _cogl_add_stencil_clip (float x_offset,
|
||||||
|
GE( cogl_wrap_glMatrixMode (GL_PROJECTION) );
|
||||||
|
GE( cogl_wrap_glPushMatrix () );
|
||||||
|
GE( cogl_wrap_glLoadIdentity () );
|
||||||
|
- cogl_rectanglex (-1.0, -1.0,
|
||||||
|
- (float)(2),
|
||||||
|
- (float)(2));
|
||||||
|
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
||||||
|
GE( cogl_wrap_glPopMatrix () );
|
||||||
|
GE( cogl_wrap_glMatrixMode (GL_MODELVIEW) );
|
||||||
|
GE( cogl_wrap_glPopMatrix () );
|
||||||
diff --git a/clutter/pango/cogl-pango-render.c b/clutter/pango/cogl-pango-render.c
|
diff --git a/clutter/pango/cogl-pango-render.c b/clutter/pango/cogl-pango-render.c
|
||||||
index 3e23309..3cafc81 100644
|
index 3e23309..3cafc81 100644
|
||||||
--- a/clutter/pango/cogl-pango-render.c
|
--- a/clutter/pango/cogl-pango-render.c
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
diff --git a/clutter/cogl/gles/cogl-primitives.c b/clutter/cogl/gles/cogl-primitives.c
|
|
||||||
index cf305a8..1a58805 100644
|
|
||||||
--- a/clutter/cogl/gles/cogl-primitives.c
|
|
||||||
+++ b/clutter/cogl/gles/cogl-primitives.c
|
|
||||||
@@ -214,12 +214,8 @@ _cogl_add_path_to_stencil_buffer (floatVec2 nodes_min,
|
|
||||||
GE( cogl_wrap_glMatrixMode (GL_PROJECTION) );
|
|
||||||
GE( cogl_wrap_glPushMatrix () );
|
|
||||||
GE( cogl_wrap_glLoadIdentity () );
|
|
||||||
- cogl_rectanglex (-1.0, -1.0,
|
|
||||||
- (float)(2),
|
|
||||||
- (float)(2));
|
|
||||||
- cogl_rectanglex (-1.0, -1.0,
|
|
||||||
- (float)(2),
|
|
||||||
- (float)(2));
|
|
||||||
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
|
||||||
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
|
||||||
GE( cogl_wrap_glPopMatrix () );
|
|
||||||
GE( cogl_wrap_glMatrixMode (GL_MODELVIEW) );
|
|
||||||
GE( cogl_wrap_glPopMatrix () );
|
|
||||||
diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c
|
|
||||||
index e835085..fc73e44 100644
|
|
||||||
--- a/clutter/cogl/gles/cogl.c
|
|
||||||
+++ b/clutter/cogl/gles/cogl.c
|
|
||||||
@@ -437,7 +437,7 @@ _cogl_add_stencil_clip (float x_offset,
|
|
||||||
GE( glStencilFunc (GL_NEVER, 0x1, 0x1) );
|
|
||||||
GE( glStencilOp (GL_REPLACE, GL_REPLACE, GL_REPLACE) );
|
|
||||||
|
|
||||||
- cogl_rectanglex (x_offset, y_offset, width, height);
|
|
||||||
+ cogl_rectangle (x_offset, y_offset, width, height);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@@ -445,7 +445,7 @@ _cogl_add_stencil_clip (float x_offset,
|
|
||||||
rectangle */
|
|
||||||
GE( glStencilFunc (GL_NEVER, 0x1, 0x3) );
|
|
||||||
GE( glStencilOp (GL_INCR, GL_INCR, GL_INCR) );
|
|
||||||
- cogl_rectanglex (x_offset, y_offset, width, height);
|
|
||||||
+ cogl_rectangle (x_offset, y_offset, width, height);
|
|
||||||
|
|
||||||
/* Subtract one from all pixels in the stencil buffer so that
|
|
||||||
only pixels where both the original stencil buffer and the
|
|
||||||
@@ -456,9 +456,7 @@ _cogl_add_stencil_clip (float x_offset,
|
|
||||||
GE( cogl_wrap_glMatrixMode (GL_PROJECTION) );
|
|
||||||
GE( cogl_wrap_glPushMatrix () );
|
|
||||||
GE( cogl_wrap_glLoadIdentity () );
|
|
||||||
- cogl_rectanglex (-1.0, -1.0,
|
|
||||||
- (float)(2),
|
|
||||||
- (float)(2));
|
|
||||||
+ cogl_rectangle (-1.0, -1.0, 2, 2);
|
|
||||||
GE( cogl_wrap_glPopMatrix () );
|
|
||||||
GE( cogl_wrap_glMatrixMode (GL_MODELVIEW) );
|
|
||||||
GE( cogl_wrap_glPopMatrix () );
|
|
@ -163,7 +163,6 @@ patch -p1<fixed-to-float-patches/cogl.h.in.0.patch
|
|||||||
# params. The corresponding interfaces that take integer params are also
|
# params. The corresponding interfaces that take integer params are also
|
||||||
# patched to take floats instead:
|
# patched to take floats instead:
|
||||||
patch -p1<fixed-to-float-patches/remove_cogl_apis_taking_fixed_params.0.patch
|
patch -p1<fixed-to-float-patches/remove_cogl_apis_taking_fixed_params.0.patch
|
||||||
patch -p1<fixed-to-float-patches/remove_cogl_apis_taking_fixed_params.1.patch
|
|
||||||
|
|
||||||
#XXX: COGL_PANGO_UNIT_TO_FIXED
|
#XXX: COGL_PANGO_UNIT_TO_FIXED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user