gtk-demo: Fix the rotated text demo
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:04:25 +0000 (00:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:08:12 +0000 (00:08 -0400)
Off-by-one on the heart!

demos/gtk-demo/rotated_text.c

index 5a88008471b726002505c3eb0fe179556e3bea1f..b7967880dab4b6636a208afd5ac9ff6c767958fe 100644 (file)
@@ -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);