diff options
| author | Manolo Gouy <Manolo> | 2010-04-16 20:19:09 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-16 20:19:09 +0000 |
| commit | 913530758af63f00676c6746988aef8b35b02531 (patch) | |
| tree | d6b59be15047e3c2742158eb5063aca55ea94eba /src/Fl_Printer.cxx | |
| parent | 0f180e130639f1017e7ca6b668357304632c1a62 (diff) | |
Improved the hierarchy of Fl_Device subclasses to allow separation of platform-specific devices.
This introduces multiple inheritance.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Printer.cxx')
| -rw-r--r-- | src/Fl_Printer.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx index d6e8425b3..6072c8515 100644 --- a/src/Fl_Printer.cxx +++ b/src/Fl_Printer.cxx @@ -58,6 +58,20 @@ const char *Fl_Printer::property_use = "Use"; const char *Fl_Printer::property_save = "Save"; const char *Fl_Printer::property_cancel = "Cancel"; +const char *Fl_Printer::device_type = "Fl_Printer"; + +Fl_Device *Fl_Printer::set_current(void) +{ +#ifdef __APPLE__ + fl_gc = (CGContextRef)gc; +#elif defined(WIN32) + fl_gc = (HDC)gc; +#else + fl_gc = (_XGC*)gc; +#endif + return this->Fl_Device::set_current(); +} + // // End of "$Id$". // |
