projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059917b
)
gtk-demo: Fix the rotated text demo
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 28 Mar 2020 04:04:25 +0000
(
00:04
-0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/rotated_text.c
b/demos/gtk-demo/rotated_text.c
index 5a88008471b726002505c3eb0fe179556e3bea1f..b7967880dab4b6636a208afd5ac9ff6c767958fe 100644
(file)
--- 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) == 0x266
4
) /* U+2665 BLACK HEART SUIT */
+ if (GPOINTER_TO_UINT (attr->data) == 0x266
5
) /* U+2665 BLACK HEART SUIT */
{
cairo_move_to (cr, .5, .0);
cairo_line_to (cr, .9, -.4);