Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-17 03:44:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-17 03:44:08 +0400
commit681e023cb0d9f7079a43397a8a44c2ece7ea9dc1 (patch)
tree5f510bc316934493cb30e0edcb03886aa1dbbf05 /source
parent52418868eb57787803344bbf993bd2fc3c15dc2c (diff)
minor improvement to image info color sample drawing, draw a grey outline.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_image/image_draw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index e91a44e0358..46de1254f41 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -265,6 +265,16 @@ void ED_image_draw_info(ARegion *ar, int color_manage, int channels, int x, int
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);