Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-17 09:09:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-17 09:09:37 +0400
commit348622360752916f9b776597e846cd2af260cdb9 (patch)
tree11e989631d832d6674fbd5c7cb188469b4cded90 /source/blender/blenfont
parent195d6c1b1a363bb30b6efaf9c274cc45edaa6f9a (diff)
code cleanup: remove/comment some unused code.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/blf_font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 84cefc923a0..7a4e1d4b781 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -279,8 +279,8 @@ void blf_font_buffer(FontBLF *font, const char *str)
if (font->b_fbuf) {
int yb = yb_start;
- for (y = (chy >= 0 ? 0:-chy); y < height_clip; y++) {
- for (x = (chx >= 0 ? 0:-chx); x < width_clip; x++) {
+ for (y = ((chy >= 0) ? 0 : -chy); y < height_clip; y++) {
+ for (x = ((chx >= 0) ? 0 : -chx); x < width_clip; x++) {
a = *(g->bitmap + x + (yb * g->pitch)) / 255.0f;
if (a > 0.0f) {