From 59bdb455668a896d9989f08446e24313f5de48d6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:05:58 +0100 Subject: Rearrange PostScript graphics driver code redundant with Cairo driver --- src/drivers/PostScript/Fl_PostScript.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 4ce3f67b9..f5d8f8f11 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -145,12 +145,11 @@ Fl_PostScript_Graphics_Driver::Fl_PostScript_Graphics_Driver(void) //lang_level_ = 3; lang_level_ = 2; mask = 0; -#endif - ps_filename_ = NULL; - scale_x = scale_y = 1.; bg_r = bg_g = bg_b = 255; clip_ = NULL; - what = NONE; + scale_x = scale_y = 1.; +#endif + ps_filename_ = NULL; } /** \brief The destructor. */ @@ -1750,9 +1749,9 @@ Fl_EPS_File_Surface::Fl_EPS_File_Surface(int width, int height, FILE *eps, Fl_Co if (s != 1) { ps->clocale_printf("GR GR GS %f %f SC GS\n", s, s); } + Fl::get_color(background, ps->bg_r, ps->bg_g, ps->bg_b); #endif ps->scale_x = ps->scale_y = s; - Fl::get_color(background, ps->bg_r, ps->bg_g, ps->bg_b); } } -- cgit v1.2.3