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

Owen Taylor otaylor at redhat.com
Thu Jan 24 09:52:13 PST 2013


Looks fine.

Reviewed-by: Owen W. Taylor <otaylor at fishsoup.net>

On Tue, 2012-12-04 at 10:55 +0000, Robert Bragg wrote:
> 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;




More information about the Cogl mailing list