Bugfix: Transform autokey warning indicator text was getting clipped prematurely
authorJoshua Leung <aligorith@gmail.com>
Thu, 21 Mar 2013 11:14:53 +0000 (11:14 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 21 Mar 2013 11:14:53 +0000 (11:14 +0000)
commit67e54eb8195443bf28280c62c92b313316fd2d8a
tree1beb047e525fa34eb516e20487512d72fb9472cd
parent8a7ce9c924318c8eeaccaed6ec3017d39f510aa3
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.
source/blender/blenfont/intern/blf.c
source/blender/editors/transform/transform.c