DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2401
Version: 1.3-current
This patch solve a problem on Fl_Postscript.cxx that prevents it to draw
label symbols correctly (actually all black, instead of gray and black
outline).
I found it on my effort to make the pdf driver.
Link: http://www.fltk.org/str.php?L2401
Version: 1.3-current
Index: src/Fl_PostScript.cxx
===================================================================
--- src/Fl_PostScript.cxx (revision 7677)
+++ src/Fl_PostScript.cxx (working copy)
@@ -917,6 +917,7 @@
void Fl_PostScript_Graphics_Driver::color(Fl_Color c) {
//colored_=1;
color_=c;
+ fl_color_ = c; // Set display color
Fl::get_color(c, cr_, cg_, cb_);
if (cr_==cg_ && cg_==cb_) {
double gray = cr_/255.0;
@@ -933,17 +934,7 @@
void Fl_PostScript_Graphics_Driver::color(unsigned char r, unsigned char g,
unsigned char b) {
//colored_=1;
- cr_=r;cg_=g;cb_=b;
- if (r==g && g==b) {
- double gray = r/255.0;
- fprintf(output, "%g GL\n", gray);
- } else {
- double fr, fg, fb;
- fr = r/255.0;
- fg = g/255.0;
- fb = b/255.0;
- fprintf(output, "%g %g %g SRGB\n", fr , fg , fb);
- }
+ color(fl_rgb_color(r,g,b));
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs