summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-12-02 10:54:40 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-12-02 10:54:40 +0100
commit596a9375305969f8104a9cd536c808cf15289074 (patch)
treedf82a7a5abdcfdd13a39f94c2e443b226d3e38b0 /src/drivers/PostScript
parent2db94dcb4c5bf2ef3fa92f1cd6a41f3f90105361 (diff)
PostScript output: initialise member variables in Fl_Cairo_Graphics_Driver constructor.
Also, remove inadequate Fl_Surface_Device::push_current(this) call in Fl_Posix_Printer_Driver::begin_job().
Diffstat (limited to 'src/drivers/PostScript')
-rw-r--r--src/drivers/PostScript/Fl_PostScript.cxx2
-rw-r--r--src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx
index 515450ce1..11d61e4f3 100644
--- a/src/drivers/PostScript/Fl_PostScript.cxx
+++ b/src/drivers/PostScript/Fl_PostScript.cxx
@@ -122,9 +122,9 @@ static const double dashes_cap[5][7]={
Fl_PostScript_Graphics_Driver::Fl_PostScript_Graphics_Driver(void)
{
close_cmd_ = 0;
+#if ! USE_PANGO
//lang_level_ = 3;
lang_level_ = 2;
-#if ! USE_PANGO
mask = 0;
#endif
ps_filename_ = NULL;
diff --git a/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H b/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H
index 4a0584036..9f7b1068c 100644
--- a/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H
+++ b/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H
@@ -48,6 +48,8 @@ public:
enum Fl_Paged_Device::Page_Format page_format_;
char *ps_filename_;
int nPages;
+ double pw_, ph_;
+ uchar bg_r, bg_g, bg_b;
Fl_PostScript_Graphics_Driver();
~Fl_PostScript_Graphics_Driver();