summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-02 09:55:47 +0000
committerManolo Gouy <Manolo>2011-02-02 09:55:47 +0000
commit864918b6b2d65284e954c5ff9786c2f465e10923 (patch)
tree2f9f50340120429621d8b10be2f5e1a75186b19d /src
parent816fc3b9718c8c407a41d7e0a5d400b5f3ed07b6 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_GDI_Printer.cxx2
-rw-r--r--src/Fl_Quartz_Printer.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx
index 9bd64f0c9..7e148e2bd 100644
--- a/src/Fl_GDI_Printer.cxx
+++ b/src/Fl_GDI_Printer.cxx
@@ -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) {
diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm
index 6f4c07a1b..946767375 100644
--- a/src/Fl_Quartz_Printer.mm
+++ b/src/Fl_Quartz_Printer.mm
@@ -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) {}