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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs