[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44932] trunk/blender/source/blender/ editors/space_image/image_draw.c: minor improvement to image info color sample drawing, draw a grey outline.
Campbell Barton
ideasman42 at gmail.com
Sat Mar 17 00:44:13 CET 2012
Revision: 44932
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44932
Author: campbellbarton
Date: 2012-03-16 23:44:08 +0000 (Fri, 16 Mar 2012)
Log Message:
-----------
minor improvement to image info color sample drawing, draw a grey outline.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_image/image_draw.c
Modified: trunk/blender/source/blender/editors/space_image/image_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_draw.c 2012-03-16 23:21:40 UTC (rev 44931)
+++ trunk/blender/source/blender/editors/space_image/image_draw.c 2012-03-16 23:44:08 UTC (rev 44932)
@@ -265,6 +265,16 @@
glVertex2f(dx+30, 17);
glVertex2f(dx+30, 3);
glEnd();
+
+ /* draw outline */
+ glColor3ub(128, 128, 128);
+ glBegin(GL_LINE_LOOP);
+ glVertex2f(dx, 3);
+ glVertex2f(dx, 17);
+ glVertex2f(dx+30, 17);
+ glVertex2f(dx+30, 3);
+ glEnd();
+
dx += 35;
glColor3ub(255, 255, 255);
More information about the Bf-blender-cvs
mailing list