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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user