diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2009-03-30 18:11:32 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2009-03-30 18:11:32 +0400 |
commit | b7886e27df2b7df24255e04592916fe06e77fe24 (patch) | |
tree | 934f0155512d03ce3557b30e0d3e526bf8fe1146 /source/blender | |
parent | 03759bc24892de4a970c2547394bb6f549ea25dd (diff) |
MSVC 2008 compile fixes
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.c b/source/blender/blenfont/intern/blf_internal.c index f3a74db0198..e2ed5db2d79 100644 --- a/source/blender/blenfont/intern/blf_internal.c +++ b/source/blender/blenfont/intern/blf_internal.c @@ -188,12 +188,13 @@ void blf_internal_boundbox(FontBLF *font, char *str, rctf *box) int length= 0; int ascent= 0; int descent= 0; + int a=0, d=0; data= (FontDataBLF *)font->engine; while ((c= (unsigned char) *str++)) { length += data->chars[c].advance; - int d = data->chars[c].yorig; - int a = data->chars[c].height - data->chars[c].yorig; + d = data->chars[c].yorig; + a = data->chars[c].height - data->chars[c].yorig; if (a > ascent) ascent= a; if (d > descent) |