summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-08-22 08:24:37 +0000
committerManolo Gouy <Manolo>2010-08-22 08:24:37 +0000
commit5a1db672e15d98ebff2a6d5133899031a576e21d (patch)
tree1f92145df58df228244f3e971204063e10b8f2ce /src
parent814f65db73bb0bf3c139a9af42a64882c5b00aec (diff)
Fl_PostScript_Graphics_Driver::color() : fl_color_ global var should be set for fl_color() call to be correct.
Fixes STR 2401 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_PostScript.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx
index 79ac2fb05..ce6e6ae33 100644
--- a/src/Fl_PostScript.cxx
+++ b/src/Fl_PostScript.cxx
@@ -921,6 +921,7 @@ void Fl_PostScript_Graphics_Driver::color(Fl_Color c) {
}
void Fl_PostScript_Graphics_Driver::color(unsigned char r, unsigned char g, unsigned char b) {
+ fl_color_ = fl_rgb_color(r, g, b);
cr_ = r; cg_ = g; cb_ = b;
if (r == g && g == b) {
double gray = r/255.0;