[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53779] trunk/blender/source/blender/ editors/interface/interface_icons.c: draw vector icons using the the scaled width, height.
Campbell Barton
ideasman42 at gmail.com
Sun Jan 13 19:21:48 CET 2013
Revision: 53779
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53779
Author: campbellbarton
Date: 2013-01-13 18:21:47 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
draw vector icons using the the scaled width,height. The buttons window context arrow wasn't scaling with the 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 2013-01-13 17:54:09 UTC (rev 53778)
+++ trunk/blender/source/blender/editors/interface/interface_icons.c 2013-01-13 18:21:47 UTC (rev 53779)
@@ -1029,7 +1029,7 @@
if (di->type == ICON_TYPE_VECTOR) {
/* vector icons use the uiBlock transformation, they are not drawn
* with untransformed coordinates like the other icons */
- di->data.vector.func((int)x, (int)y, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_HEIGHT, 1.0f);
+ di->data.vector.func((int)x, (int)y, w, h, 1.0f);
}
else if (di->type == ICON_TYPE_TEXTURE) {
/* texture image use premul alpha for correct scaling */
More information about the Bf-blender-cvs
mailing list