From a3cc6c73e8ab92775b6a053132c859d2aec264f8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Apr 2011 04:14:25 +0000 Subject: [PATCH] noticed image color info text was impossible to read at 25% alpha with some images, set alpha level higher. --- source/blender/editors/space_image/image_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index 4f2e68bb216..d76374ec3f4 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -154,12 +154,13 @@ void draw_image_info(ARegion *ar, int channels, int x, int y, char *cp, float *f ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| Z: %.4f ", 0.5f+0.5f*(((float)*zp)/(float)0x7fffffff)); if(zpf) ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| Z: %.3f ", *zpf); - (void)ofs; + (void)ofs; /* quiet clang */ glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); - - glColor4f(.0,.0,.0,.25); + + /* noisy, high contrast make impossible to read if lower alpha is used. */ + glColor4ub(0, 0, 0, 190); glRecti(0.0, 0.0, ar->winrct.xmax - ar->winrct.xmin + 1, 20); glDisable(GL_BLEND);