From acc9075a58e8c2a43ee4f43cace682845644e8be Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 26 Jul 2022 09:39:30 +0200 Subject: Remove redundant Fl_PostScript_Graphics_Driver::color() under Pango. --- src/drivers/PostScript/Fl_PostScript.cxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/drivers/PostScript/Fl_PostScript.cxx') diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx index 3d0b15f59..8b6dfea9b 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -215,14 +215,6 @@ void Fl_PostScript_Graphics_Driver::text_extents(const char *c, int n, int &dx, Fl_Graphics_Driver::default_driver().text_extents(c, n, dx, dy, w, h); } - -void Fl_PostScript_Graphics_Driver::color(Fl_Color c) { - Fl::get_color(c, cr_, cg_, cb_); - color(cr_, cg_, cb_); -} - -Fl_Color Fl_PostScript_Graphics_Driver::color() { return Fl_Graphics_Driver::color(); } - void Fl_PostScript_Graphics_Driver::point(int x, int y){ rectf(x,y,1,1); } @@ -1062,6 +1054,13 @@ void Fl_PostScript_Graphics_Driver::line_style(int style, int width, char* dashe fprintf(output, "] 0 setdash\n"); } +void Fl_PostScript_Graphics_Driver::color(Fl_Color c) { + Fl::get_color(c, cr_, cg_, cb_); + color(cr_, cg_, cb_); +} + +Fl_Color Fl_PostScript_Graphics_Driver::color() { return Fl_Graphics_Driver::color(); } + void Fl_PostScript_Graphics_Driver::color(unsigned char r, unsigned char g, unsigned char b) { Fl_Graphics_Driver::color( fl_rgb_color(r, g, b) ); cr_ = r; cg_ = g; cb_ = b; -- cgit v1.2.3