From 5a1db672e15d98ebff2a6d5133899031a576e21d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 22 Aug 2010 08:24:37 +0000 Subject: 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 --- src/Fl_PostScript.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_PostScript.cxx') 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; -- cgit v1.2.3