From 6a5feafe23e6e37009312aa40b63d19ad9cff886 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 6 Feb 2011 12:32:23 +0000 Subject: Replaced global variable fl_color_ by a private member of the Fl_Graphics_Driver class, and a public getter to it: Fl_Graphics_Driver::color(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_PostScript.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_PostScript.cxx') diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 178d2b479..6aea75ba7 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -940,7 +940,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); + Fl_Graphics_Driver::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