summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 20:27:49 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 20:27:49 -0300
commit8911a3baf04324cd3e233cd7cb55f14313c0b2a6 (patch)
tree146b0642c174a599367ae907cbab4ccc49018486 /gfx
parent51e5f3fd52b7b338a153857b1d7dd01d632097bb (diff)
downloadeeshow-8911a3baf04324cd3e233cd7cb55f14313c0b2a6.tar.gz
eeshow-8911a3baf04324cd3e233cd7cb55f14313c0b2a6.tar.bz2
eeshow-8911a3baf04324cd3e233cd7cb55f14313c0b2a6.zip
gfx/cro.c (cr_text_pango): minor cleanup
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 3ba3bb0..abb27c9 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -242,10 +242,9 @@ static void cr_text_pango(void *ctx, int x, int y, const char *s, unsigned size,
PangoRectangle ink;
pango_font_description_set_absolute_size(cc->pango_desc,
-// pango_font_description_set_size(cc->pango_desc,
cd(cc, size) * TEXT_STRETCH * PANGO_SCALE);
- pango_layout_set_text(cc->pango_layout, s, -1);
pango_layout_set_font_description(cc->pango_layout, cc->pango_desc);
+ pango_layout_set_text(cc->pango_layout, s, -1);
pango_layout_get_extents(cc->pango_layout, &ink, NULL);
set_color(cc, color);