diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-02 10:54:40 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-02 10:54:40 +0100 |
| commit | 596a9375305969f8104a9cd536c808cf15289074 (patch) | |
| tree | df82a7a5abdcfdd13a39f94c2e443b226d3e38b0 /src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | |
| parent | 2db94dcb4c5bf2ef3fa92f1cd6a41f3f90105361 (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/Cairo/Fl_Cairo_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx index f6db07cda..df7ea100c 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx @@ -64,7 +64,14 @@ static void draw_image_cb(void *data, int x, int y, int w, uchar *buf) { } -Fl_Cairo_Graphics_Driver::Fl_Cairo_Graphics_Driver() : Fl_Graphics_Driver() {} +Fl_Cairo_Graphics_Driver::Fl_Cairo_Graphics_Driver() : Fl_Graphics_Driver() { + cairo_ = NULL; + pango_layout_ = NULL; + clip_ = NULL; + scale_x = scale_y = 1; + angle = 0; + left_margin = top_margin = 0; +} Fl_Cairo_Graphics_Driver::~Fl_Cairo_Graphics_Driver() {} @@ -192,8 +199,6 @@ void Fl_Cairo_Graphics_Driver::polygon(int x0, int y0, int x1, int y1, int x2, i } void Fl_Cairo_Graphics_Driver::line_style(int style, int width, char* dashes) { - linewidth_=width; - linestyle_=style; if(dashes){ if(dashes != linedash_) strcpy(linedash_,dashes); |
