diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 08:14:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 08:14:25 +0400 |
commit | a3cc6c73e8ab92775b6a053132c859d2aec264f8 (patch) | |
tree | 97ad550a9d812e04991f38fd0a68c0051b756575 /source/blender/editors/space_image | |
parent | 37007a7bc87adb18ff30963a226956d1d1ceb2bf (diff) |
noticed image color info text was impossible to read at 25% alpha with some images, set alpha level higher.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_draw.c | 7 |
1 files 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); |