[Bf-blender-cvs] [1908c31] master: Fix for icon pin drawing too large when (U.pixelsize != 1)

Campbell Barton noreply at git.blender.org
Tue Jan 14 18:57:44 CET 2014


Commit: 1908c31b06d8c23ec19ce5f95dc3eb6aa6b3d2f4
Author: Campbell Barton
Date:   Wed Jan 15 04:56:37 2014 +1100
https://developer.blender.org/rB1908c31b06d8c23ec19ce5f95dc3eb6aa6b3d2f4

Fix for icon pin drawing too large when (U.pixelsize != 1)

===================================================================

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 a330f31..bc257e8 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 / UI_DPI_FAC) / U.pixelsize, 1.0f);
+		                    (block->aspect / UI_DPI_FAC), 1.0f);
 		glDisable(GL_BLEND);
 	}




More information about the Bf-blender-cvs mailing list