From ede891808c0b2306bf4435e9dcefcabc9b7fa42c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 6 Jan 2014 03:10:15 +1100 Subject: UI: pin icon was ignoring DPI --- source/blender/editors/interface/interface_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 756e7fc3d3a..3c50be8dcb9 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -573,7 +573,7 @@ void ui_draw_aligned_panel(uiStyle *style, uiBlock *block, const rcti *rect, con glEnable(GL_BLEND); UI_icon_draw_aspect(headrect.xmax - ((PNL_ICON * 2.2f) / block->aspect), headrect.ymin + (5.0f / block->aspect), (panel->flag & PNL_PIN) ? ICON_PINNED : ICON_UNPINNED, - block->aspect / U.pixelsize, 1.0f); + (block->aspect / UI_DPI_FAC) / U.pixelsize, 1.0f); glDisable(GL_BLEND); } -- cgit v1.2.3