draw vector icons using the the scaled width,height. The buttons window context arrow wasn't scaling with the DPI.

This commit is contained in:
Campbell Barton
2013-01-13 18:21:47 +00:00
parent f102953634
commit b3f52205f2

View File

@@ -1029,7 +1029,7 @@ static void icon_draw_size(float x, float y, int icon_id, float aspect, float al
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 */