[Cogl] [PATCH] use c99 types if applicable and s/gboolean/CoglBool/

Robert Bragg robert at sixbynine.org
Tue Dec 4 02:55:55 PST 2012


From: Robert Bragg <robert at linux.intel.com>

TODO: squash back into owen's patch
---
 cogl/cogl-xlib-renderer.c     |    6 +++---
 cogl/winsys/cogl-winsys-glx.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cogl/cogl-xlib-renderer.c b/cogl/cogl-xlib-renderer.c
index c3964c1..1060949 100644
--- a/cogl/cogl-xlib-renderer.c
+++ b/cogl/cogl-xlib-renderer.c
@@ -219,16 +219,16 @@ static CoglSubpixelOrder subpixel_map[6][6] = {
 
 static void
 update_outputs (CoglRenderer *renderer,
-                gboolean      notify)
+                CoglBool notify)
 {
   CoglXlibRenderer *xlib_renderer =
     _cogl_xlib_renderer_get_data (renderer);
   XRRScreenResources *resources;
   CoglXlibTrapState state;
-  gboolean error = FALSE;
+  CoglBool error = FALSE;
   GList *new_outputs = NULL;
   GList *l, *m;
-  gboolean changed = FALSE;
+  CoglBool changed = FALSE;
   int i;
 
   xlib_renderer->outputs_update_serial = XNextRequest (xlib_renderer->xdpy);
diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c
index 11b0cc1..f52304d 100644
--- a/cogl/winsys/cogl-winsys-glx.c
+++ b/cogl/winsys/cogl-winsys-glx.c
@@ -314,7 +314,7 @@ _cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
   g_slice_free (CoglGLXRenderer, renderer->winsys);
 }
 
-static gboolean
+static CoglBool
 update_all_outputs (CoglRenderer *renderer)
 {
   GList *l;
-- 
1.7.7.6



More information about the Cogl mailing list