[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53215] trunk/blender/source/blender/ editors/space_outliner/outliner_draw.c: Small fix in drawing ' selection circle' in outliner.
Ton Roosendaal
ton at blender.org
Thu Dec 20 18:40:31 CET 2012
Revision: 53215
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53215
Author: ton
Date: 2012-12-20 17:40:30 +0000 (Thu, 20 Dec 2012)
Log Message:
-----------
Small fix in drawing 'selection circle' in outliner. It wasn't circular.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_outliner/outliner_draw.c
Modified: trunk/blender/source/blender/editors/space_outliner/outliner_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_draw.c 2012-12-20 16:50:39 UTC (rev 53214)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_draw.c 2012-12-20 17:40:30 UTC (rev 53215)
@@ -1227,12 +1227,12 @@
float ufac = UI_UNIT_X / 20.0f;
uiSetRoundBox(UI_CNR_ALL);
- glColor4ub(255, 255, 255, 128);
+ glColor4ub(255, 255, 255, 100);
uiRoundBox((float) *offsx - 1.0f * ufac,
(float)ys + 1.0f * ufac,
- (float)*offsx + UI_UNIT_X - 1.0f * ufac,
- (float)ys + UI_UNIT_Y - 1.0f * ufac,
- (float)UI_UNIT_Y / 2.0f - 2.0f * ufac);
+ (float)*offsx + UI_UNIT_X - 2.0f * ufac,
+ (float)ys + UI_UNIT_Y - ufac,
+ (float)UI_UNIT_Y / 2.0f - ufac);
glEnable(GL_BLEND); /* roundbox disables */
}
@@ -1365,11 +1365,11 @@
/* active circle */
if (active) {
uiSetRoundBox(UI_CNR_ALL);
- uiRoundBox((float)startx + UI_UNIT_X - 1.0f * ufac,
+ uiRoundBox((float)startx + UI_UNIT_X,
(float)*starty + 1.0f * ufac,
- (float)startx + 2.0f * UI_UNIT_X - 1.0f * ufac,
+ (float)startx + 2.0f * UI_UNIT_X - 2.0f * ufac,
(float)*starty + UI_UNIT_Y - 1.0f * ufac,
- UI_UNIT_Y / 2.0f - 2.0f * ufac);
+ UI_UNIT_Y / 2.0f - 1.0f * ufac);
glEnable(GL_BLEND); /* roundbox disables it */
te->flag |= TE_ACTIVE; // for lookup in display hierarchies
More information about the Bf-blender-cvs
mailing list