From d95dd7acc4af3a4bd521d151ba3576b91d8ace53 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 28 May 2021 13:29:05 +0200 Subject: New virtual member function Fl_Graphics_Driver::colored_rectf(). --- src/Fl_Graphics_Driver.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Fl_Graphics_Driver.cxx') diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 3ac4d3154..d558b739b 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -461,6 +461,11 @@ void Fl_Graphics_Driver::rect(int x, int y, int w, int h) {} /** see fl_rectf() */ void Fl_Graphics_Driver::rectf(int x, int y, int w, int h) {} +void Fl_Graphics_Driver::colored_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b) { + color(r, g, b); + rectf(x, y, w, h); +} + /** see fl_line(int, int, int, int) */ void Fl_Graphics_Driver::line(int x, int y, int x1, int y1) {} -- cgit v1.2.3