diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-05 18:00:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-05 18:00:06 +0400 |
commit | 08f44adba965dbf4f7c56eb096b0e2709df80e5c (patch) | |
tree | c55a335e74ac8d05096024a9899d3c981d456384 /source/blender/editors/space_file/filesel.c | |
parent | 56befd2666eb97ae9de1b5fa0aff6be5772d452a (diff) |
file selector now scales with DPI better
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 968953abf62..793267bfa8c 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -403,10 +403,12 @@ float file_font_pointsize(void) uiStyleFontSet(&style->widget); s = BLF_height(style->widget.uifont_id, tmp); return style->widget.points; -#else +#elif 0 uiStyle *style= U.uistyles.first; uiStyleFontSet(&style->widget); return style->widget.points; +#else + return UI_UNIT_Y * 0.6666f; #endif } @@ -497,11 +499,11 @@ void ED_fileselect_init_layout(struct SpaceFile *sfile, struct ARegion *ar) column_widths(sfile->files, layout); if (params->display == FILE_SHORTDISPLAY) { - maxlen = ICON_DEFAULT_WIDTH + 4 + + maxlen = ICON_DEFAULT_WIDTH_SCALE + 4 + (int)layout->column_widths[COLUMN_NAME] + 12 + (int)layout->column_widths[COLUMN_SIZE] + 12; } else { - maxlen = ICON_DEFAULT_WIDTH + 4 + + maxlen = ICON_DEFAULT_WIDTH_SCALE + 4 + (int)layout->column_widths[COLUMN_NAME] + 12 + #ifndef WIN32 (int)layout->column_widths[COLUMN_MODE1] + 12 + |