diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-07 19:33:01 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-07 19:33:01 +0400 |
commit | 53939ee4e9af92c533f6b86833f3003869c89769 (patch) | |
tree | e51cf5873e50cd6d0b95657b786aaece4c950cbb /source/blender | |
parent | 9c8cc9fe60e783f698e291ed5ef338a477214f22 (diff) |
Fix: correct spacing for file select items, using font size + dpi.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 793267bfa8c..45193a38ef5 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -403,12 +403,10 @@ float file_font_pointsize(void) uiStyleFontSet(&style->widget); s = BLF_height(style->widget.uifont_id, tmp); return style->widget.points; -#elif 0 +#else uiStyle *style= U.uistyles.first; uiStyleFontSet(&style->widget); - return style->widget.points; -#else - return UI_UNIT_Y * 0.6666f; + return style->widget.points * UI_DPI_FAC; #endif } |