diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 00:07:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 00:07:26 +0000 |
commit | 3d9771152b9fd27bea66cbba3af2fbbb79ccf68e (patch) | |
tree | 481bcd81215a77e1a76bea2a2c2dd4b9d97b8b8a /src/text.c | |
parent | e4831db229641ee88ad8a2c1e0d82d7d3442e96b (diff) | |
download | ganv-3d9771152b9fd27bea66cbba3af2fbbb79ccf68e.tar.gz ganv-3d9771152b9fd27bea66cbba3af2fbbb79ccf68e.tar.bz2 ganv-3d9771152b9fd27bea66cbba3af2fbbb79ccf68e.zip |
Fix text on circles.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4926 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -301,6 +301,10 @@ ganv_text_draw(GanvItem* item, double wy = impl->coords.y; ganv_item_i2w(item, &wx, &wy); + if (impl->needs_layout) { + ganv_text_layout(text); + } + // Round to the nearest pixel so text isn't blurry wx = lrint(wx); wy = lrint(wy); |