[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40622] trunk/blender/source/blender/ editors/interface/interface_icons.c: fix [#28752] Brush Icons do not scale correctly with DPI
Campbell Barton
ideasman42 at gmail.com
Tue Sep 27 18:39:42 CEST 2011
Revision: 40622
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40622
Author: campbellbarton
Date: 2011-09-27 16:39:41 +0000 (Tue, 27 Sep 2011)
Log Message:
-----------
fix [#28752] Brush Icons do not scale correctly with DPI
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface_icons.c
Modified: trunk/blender/source/blender/editors/interface/interface_icons.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_icons.c 2011-09-27 16:23:40 UTC (rev 40621)
+++ trunk/blender/source/blender/editors/interface/interface_icons.c 2011-09-27 16:39:41 UTC (rev 40622)
@@ -953,7 +953,7 @@
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);
More information about the Bf-blender-cvs
mailing list