Revision: 35986
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35986
Author: campbellbarton
Date: 2011-04-04 04:14:25 +0000 (Mon, 04 Apr 2011)
Log Message:
-----------
noticed image color info text was impossible to read at 25% alpha with some
images, set alpha level higher.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_image/image_draw.c
Modified: trunk/blender/source/blender/editors/space_image/image_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_draw.c
2011-04-04 03:25:05 UTC (rev 35985)
+++ trunk/blender/source/blender/editors/space_image/image_draw.c
2011-04-04 04:14:25 UTC (rev 35986)
@@ -154,12 +154,13 @@
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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs