[libdazzle] cairo: fix return type of rectangle functions



commit 56997c18ca14c870be87bb35ec296d329d571244
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 19 12:06:21 2018 -0800

    cairo: fix return type of rectangle functions
    
    gboolean is signed int, so no abi change here.

 src/util/dzl-cairo.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/util/dzl-cairo.h b/src/util/dzl-cairo.h
index 1afd7c2..03b70c5 100644
--- a/src/util/dzl-cairo.h
+++ b/src/util/dzl-cairo.h
@@ -33,25 +33,25 @@ void            dzl_cairo_rounded_rectangle               (cairo_t            *c
                                                            gint                x_radius,
                                                            gint                y_radius);
 
-static inline gboolean
+static inline gint
 dzl_cairo_rectangle_x2 (const cairo_rectangle_int_t *rect)
 {
   return rect->x + rect->width;
 }
 
-static inline gboolean
+static inline gint
 dzl_cairo_rectangle_y2 (const cairo_rectangle_int_t *rect)
 {
   return rect->y + rect->height;
 }
 
-static inline gboolean
+static inline gint
 dzl_cairo_rectangle_center (const cairo_rectangle_int_t *rect)
 {
   return rect->x + (rect->width/2);
 }
 
-static inline gboolean
+static inline gint
 dzl_cairo_rectangle_middle (const cairo_rectangle_int_t *rect)
 {
   return rect->y + (rect->height/2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]