diff options
Diffstat (limited to 'src/fl_color.cxx')
| -rw-r--r-- | src/fl_color.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx index c3021e7ea..3c7dece44 100644 --- a/src/fl_color.cxx +++ b/src/fl_color.cxx @@ -25,6 +25,7 @@ #include <FL/Fl.H> #include <FL/Fl_Device.H> +#include <FL/Fl_Graphics_Driver.H> #include <FL/Fl.H> // fl_cmap needs to be defined globally (here) and is used in the device @@ -65,6 +66,19 @@ void Fl::set_color(Fl_Color i, uchar red, uchar green, uchar blue) { ((unsigned)red<<24)+((unsigned)green<<16)+((unsigned)blue<<8)); } + +void Fl::set_color(Fl_Color i, unsigned int c) +{ + fl_graphics_driver->set_color(i, c); +} + + +void Fl::free_color(Fl_Color i, int overlay) +{ + fl_graphics_driver->free_color(i, overlay); +} + + /** Returns the RGB value(s) for the given FLTK color index. |
