diff options
author | Joshua Leung <aligorith@gmail.com> | 2013-03-21 15:14:53 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2013-03-21 15:14:53 +0400 |
commit | 67e54eb8195443bf28280c62c92b313316fd2d8a (patch) | |
tree | 1beb047e525fa34eb516e20487512d72fb9472cd /source/blender/blenfont | |
parent | 8a7ce9c924318c8eeaccaed6ec3017d39f510aa3 (diff) |
Bugfix: Transform autokey warning indicator text was getting clipped prematurely
After quite some time debugging going back through previous commits for this
feature and digging around the internals of the blenfont,I finally found the
culprit. It turns out that there was just a single line missing between
BLF_width_default() and BLF_width_and_height_default(), which caused the widths
returned to understimate the space required or so, causing text clipping. The
offending line probably correcting for different DPI scaling values.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index e7e277b7b34..6523aa87473 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -619,6 +619,7 @@ void BLF_width_and_height_default(const char *str, float *width, float *height) return; } + BLF_size(global_font_default, global_font_points, global_font_dpi); BLF_width_and_height(global_font_default, str, width, height); } |