[gtk/matthiasc/for-master: 6/9] gtk-demo: Fix the rotated text demo



commit fbed55dff9df454e249fe4d4a7e288778019171e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 28 00:04:25 2020 -0400

    gtk-demo: Fix the rotated text demo
    
    Off-by-one on the heart!

 demos/gtk-demo/rotated_text.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c
index 5a88008471..b7967880da 100644
--- a/demos/gtk-demo/rotated_text.c
+++ b/demos/gtk-demo/rotated_text.c
@@ -28,7 +28,7 @@ fancy_shape_renderer (cairo_t        *cr,
                (double) attr->ink_rect.width  / PANGO_SCALE,
                (double) attr->ink_rect.height / PANGO_SCALE);
 
-  if (GPOINTER_TO_UINT (attr->data) == 0x2664) /* U+2665 BLACK HEART SUIT */
+  if (GPOINTER_TO_UINT (attr->data) == 0x2665) /* U+2665 BLACK HEART SUIT */
     {
       cairo_move_to (cr, .5, .0);
       cairo_line_to (cr, .9, -.4);


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