diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-17 03:44:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-17 03:44:08 +0400 |
commit | 681e023cb0d9f7079a43397a8a44c2ece7ea9dc1 (patch) | |
tree | 5f510bc316934493cb30e0edcb03886aa1dbbf05 /source | |
parent | 52418868eb57787803344bbf993bd2fc3c15dc2c (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.c | 10 |
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); |