diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-11-07 21:16:27 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-11-07 21:16:27 +0300 |
commit | 6900d71ac67826cd6215daf4c9540d7e92087164 (patch) | |
tree | 91061e6645af99fb61eee9b7664942156bdb7469 /source/blender/editors/space_file | |
parent | 4741dd26d3d76dd1798445eb9865585d18261d81 (diff) |
Remove code duplication.
Will look into nicely using uiStyleFontDraw later.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 719c29c3d3c..6f499b3ecfd 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -306,14 +306,8 @@ static void file_draw_string(int sx, int sy, const char* string, float width, in x = (float)(sx); y = (float)(sy-height); - if (style->widget.kerning == 1) - BLF_enable(style->widget.uifont_id, BLF_KERNING_DEFAULT); - - uiStyleFontSet(&style->widget); - BLF_position(style->widget.uifont_id, x, y, 0); - BLF_draw(style->widget.uifont_id, fname); - if (style->widget.kerning == 1) - BLF_disable(style->widget.uifont_id, BLF_KERNING_DEFAULT); + UI_DrawString(x,y, fname); + } void file_calc_previews(const bContext *C, ARegion *ar) |