summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript/Fl_PostScript.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-28 15:05:58 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-28 15:05:58 +0100
commit59bdb455668a896d9989f08446e24313f5de48d6 (patch)
tree5852007fcdb6815d5cb78d88af2fe3105104da83 /src/drivers/PostScript/Fl_PostScript.cxx
parent12af9dad3e004de7fc5ff7da358377ae29ee1f68 (diff)
Rearrange PostScript graphics driver code redundant with Cairo driver
Diffstat (limited to 'src/drivers/PostScript/Fl_PostScript.cxx')
-rw-r--r--src/drivers/PostScript/Fl_PostScript.cxx9
1 files changed, 4 insertions, 5 deletions
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);
}
}