diff options
| author | Manolo Gouy <Manolo> | 2012-03-12 09:39:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-03-12 09:39:17 +0000 |
| commit | 4715e1593ede95a320f618c026bd8c886163755a (patch) | |
| tree | 558e8bc15d380295b8f5587c056da8041cc574e8 /src/Fl_GDI_Printer.cxx | |
| parent | c9303f2c8355705c43e2ef6acb90667f761be5f5 (diff) | |
Use a new Fl_Quartz_Graphics_Driver or Fl_GDI_Graphics_Driver instance when printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_GDI_Printer.cxx')
| -rw-r--r-- | src/Fl_GDI_Printer.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx index 762706fb9..d1bc98772 100644 --- a/src/Fl_GDI_Printer.cxx +++ b/src/Fl_GDI_Printer.cxx @@ -3,7 +3,7 @@ // // Support for WIN32 printing for the Fast Light Tool Kit (FLTK). // -// Copyright 2010 by Bill Spitzak and others. +// Copyright 2010-2012 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -27,11 +27,12 @@ extern HWND fl_window; Fl_System_Printer::Fl_System_Printer(void) : Fl_Paged_Device() { hPr = NULL; - driver(Fl_Display_Device::display_device()->driver()); + driver(new Fl_GDI_Graphics_Driver); } Fl_System_Printer::~Fl_System_Printer(void) { if (hPr) end_job(); + delete driver(); } static void WIN_SetupPrinterDeviceContext(HDC prHDC) |
