diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-05 20:10:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-05 20:10:15 +0400 |
commit | ede891808c0b2306bf4435e9dcefcabc9b7fa42c (patch) | |
tree | 8a53c8d8beccc2152c197a808b30cd00b786ce15 /source/blender/editors | |
parent | ca78e402eb351186b03d7456ea27aaf6ddd0e676 (diff) |
UI: pin icon was ignoring DPI
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |