[Bf-blender-cvs] [ede8918] master: UI: pin icon was ignoring DPI
Campbell Barton
noreply at git.blender.org
Sun Jan 5 17:10:38 CET 2014
Commit: ede891808c0b2306bf4435e9dcefcabc9b7fa42c
Author: Campbell Barton
Date: Mon Jan 6 03:10:15 2014 +1100
https://developer.blender.org/rBede891808c0b2306bf4435e9dcefcabc9b7fa42c
UI: pin icon was ignoring DPI
===================================================================
M source/blender/editors/interface/interface_panel.c
===================================================================
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 756e7fc..3c50be8 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);
}
More information about the Bf-blender-cvs
mailing list