noticed image color info text was impossible to read at 25% alpha with some images, set alpha level higher.

This commit is contained in:
Campbell Barton 2011-04-04 04:14:25 +00:00
parent 37007a7bc8
commit a3cc6c73e8

@ -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);