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:
authorTon Roosendaal <ton@blender.org>2011-06-07 19:33:01 +0400
committerTon Roosendaal <ton@blender.org>2011-06-07 19:33:01 +0400
commit53939ee4e9af92c533f6b86833f3003869c89769 (patch)
treee51cf5873e50cd6d0b95657b786aaece4c950cbb /source/blender/editors/space_file/filesel.c
parent9c8cc9fe60e783f698e291ed5ef338a477214f22 (diff)
Fix: correct spacing for file select items, using font size + dpi.
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c6
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
}