From 681e023cb0d9f7079a43397a8a44c2ece7ea9dc1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 16 Mar 2012 23:44:08 +0000 Subject: [PATCH] minor improvement to image info color sample drawing, draw a grey outline. --- source/blender/editors/space_image/image_draw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);