summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 21:01:28 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 21:01:28 -0300
commitd9c778ee5a6de62a8d00c85456cbfd14fc6fe965 (patch)
tree0ad3d8cf6ce4df8118c8af61ac177866ae5b9d55 /gfx
parented26fb9c937582345f4cf20e7ff44297188d450e (diff)
downloadeeshow-d9c778ee5a6de62a8d00c85456cbfd14fc6fe965.tar.gz
eeshow-d9c778ee5a6de62a8d00c85456cbfd14fc6fe965.tar.bz2
eeshow-d9c778ee5a6de62a8d00c85456cbfd14fc6fe965.zip
gfx/cro.c (cr_text_pango): don't call pango_cairo_update_layout
Seems that we don't need it. Down another 10% from 3.36 to 3.03 s.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index d650fcc..d6ca1c6 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -280,7 +280,7 @@ static void cr_text_pango(void *ctx, int x, int y, const char *s, unsigned size,
BUG("invalid alignment %d", align);
}
- pango_cairo_update_layout(cc->cr, cc->pango_layout);
+// pango_cairo_update_layout(cc->cr, cc->pango_layout);
pango_cairo_show_layout(cc->cr, cc->pango_layout);
cairo_restore(cc->cr);
}