diff options
author | David Robillard <d@drobilla.net> | 2011-12-14 05:29:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-14 05:29:47 +0000 |
commit | 3680d163650c1d79869952520aba2eae281da95e (patch) | |
tree | bd372ecf5b1c954e6bffd6c9415c641983d106e2 /src/text.c | |
parent | a70ec768ee9a3a5783f2c07feb77e67ced78a802 (diff) | |
download | ganv-3680d163650c1d79869952520aba2eae281da95e.tar.gz ganv-3680d163650c1d79869952520aba2eae281da95e.tar.bz2 ganv-3680d163650c1d79869952520aba2eae281da95e.zip |
Draw directly to window cairo context instead of gdk pixmap.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3875 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -299,8 +299,8 @@ ganv_text_draw(GanvItem* item, ganv_item_i2w(item, &wx, &wy); // Round to the nearest pixel so text isn't blurry - wx = lrint(wx - x); - wy = lrint(wy - y); + wx = lrint(wx); + wy = lrint(wy); cairo_set_source_surface(cr, impl->surface, wx, wy); cairo_paint(cr); |