diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-27 20:39:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-27 20:39:41 +0400 |
commit | 3abfb2af43722bef5933c957ee1d38054f16911d (patch) | |
tree | 7a078eea13e140bde83aec03059384fe84d6e3ff /source | |
parent | aaae90af33aa2bdf585c75fa9dcf5f2dd4d205bd (diff) |
fix [#28752] Brush Icons do not scale correctly with DPI
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index c3a0f438fbe..5ea013ded59 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -953,7 +953,7 @@ static void icon_draw_size(float x, float y, int icon_id, float aspect, float al Icon *icon = NULL; DrawInfo *di = NULL; IconImage *iimg; - float fdraw_size= UI_DPI_ICON_FAC*draw_size; + float fdraw_size= is_preview ? draw_size : (draw_size * UI_DPI_ICON_FAC); int w, h; icon = BKE_icon_get(icon_id); |