Author: manolo
Date: 2010-04-13 10:44:52 -0700 (Tue, 13 Apr 2010)
New Revision: 7493
Log:
gl_draw.cxx (Mac-specific): account for text color.

Modified:
   branches/branch-1.3/src/gl_draw.cxx

Modified: branches/branch-1.3/src/gl_draw.cxx
===================================================================
--- branches/branch-1.3/src/gl_draw.cxx 2010-04-13 16:10:08 UTC (rev 7492)
+++ branches/branch-1.3/src/gl_draw.cxx 2010-04-13 17:44:52 UTC (rev 7493)
@@ -486,6 +486,9 @@
   fl_gc = CGBitmapContextCreate(base, fifo[current].width, 
fifo[current].height, 8, fifo[current].width*4, lut, 
kCGImageAlphaPremultipliedLast);
   CGColorSpaceRelease(lut);
   fl_fontsize = gl_fontsize;
+  GLfloat colors[4];
+  glGetFloatv(GL_CURRENT_COLOR, colors);
+  fl_color(colors[0]*255, colors[1]*255, colors[2]*255);
   fl_draw(str, 0, fifo[current].height - fl_descent());
   //put this bitmap in a texture  
   glPushAttrib(GL_TEXTURE_BIT);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to