Browse Source

Minor change in Fl_System_Printer constructors: use the same graphics driver as the display.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/49/head
Manolo Gouy 15 years ago
parent
commit
864918b6b2
  1. 2
      src/Fl_GDI_Printer.cxx
  2. 2
      src/Fl_Quartz_Printer.mm

2
src/Fl_GDI_Printer.cxx

@ -37,7 +37,7 @@ extern HWND fl_window; @@ -37,7 +37,7 @@ extern HWND fl_window;
Fl_System_Printer::Fl_System_Printer(void) : Fl_Paged_Device() {
hPr = NULL;
class_name(class_id);
driver(fl_graphics_driver);
driver(Fl_Display_Device::display_device()->driver());
}
Fl_System_Printer::~Fl_System_Printer(void) {

2
src/Fl_Quartz_Printer.mm

@ -42,7 +42,7 @@ Fl_System_Printer::Fl_System_Printer(void) @@ -42,7 +42,7 @@ Fl_System_Printer::Fl_System_Printer(void)
scale_x = scale_y = 1.;
class_name(class_id);
gc = 0;
driver(fl_graphics_driver);
driver(Fl_Display_Device::display_device()->driver());
}
Fl_System_Printer::~Fl_System_Printer(void) {}

Loading…
Cancel
Save