diff options
| author | Manolo Gouy <Manolo> | 2011-02-06 12:32:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-06 12:32:23 +0000 |
| commit | 6a5feafe23e6e37009312aa40b63d19ad9cff886 (patch) | |
| tree | a5d1d7b429cec1ae3f21647e9777a5bc66c0b8c3 /FL/fl_draw.H | |
| parent | 5e7232e776d3325ecc1a336453a3f846a1872ff1 (diff) | |
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
Diffstat (limited to 'FL/fl_draw.H')
| -rw-r--r-- | FL/fl_draw.H | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 5d197e403..a9651846d 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -72,13 +72,11 @@ inline void fl_color(int c) {fl_color((Fl_Color)c);} \param[in] r,g,b color components */ inline void fl_color(uchar r, uchar g, uchar b) {fl_graphics_driver->color(r,g,b); } // select actual color -/** \brief The current color */ -extern FL_EXPORT Fl_Color fl_color_; /** Returns the last fl_color() that was set. This can be used for state save/restore. */ -inline Fl_Color fl_color() {return fl_color_;} +inline Fl_Color fl_color() {return fl_graphics_driver->color();} /** @} */ /** \addtogroup fl_drawings |
