summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-11-26 10:22:40 +0000
committerManolo Gouy <Manolo>2010-11-26 10:22:40 +0000
commit39169af7dd1e6e3a518788f130304600dac6f221 (patch)
tree2f43e037a19a1fd6bf697894eaf1fdeeff721c01
parentd3e0d030f0646f1b67f2850520b95d76958fab64 (diff)
Removed Doxygen warning from file src/Fl_Printer.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Printer.H6
-rw-r--r--src/Fl_Printer.cxx4
-rw-r--r--src/Fl_Quartz_Printer.mm1
3 files changed, 5 insertions, 6 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index 9075f3aac..671dcdb77 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -53,7 +53,7 @@ class Fl_System_Printer : public Fl_Paged_Device {
private:
/** \brief the printer's graphics context, if there's one, NULL otherwise */
void *gc;
- void set_current();
+ void set_current(void);
#ifdef __APPLE__
float scale_x;
float scale_y;
@@ -116,7 +116,6 @@ public:
#endif // FL_DOXYGEN
}; // class Fl_System_Printer
-/** \brief OS-independant class name */
typedef Fl_System_Printer Fl_Printer;
#endif
@@ -129,8 +128,6 @@ typedef Fl_System_Printer Fl_Printer;
Fl_Printer is typedef'ed to Fl_PostScript_Printer under Unix/Linux.
*/
class Fl_PostScript_Printer : public Fl_PostScript_File_Device {
-private:
- void set_current();
public:
static const char *device_type;
int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL);
@@ -158,7 +155,6 @@ public:
#endif // FL_DOXYGEN
};
-/** \brief OS-independant class name */
typedef Fl_PostScript_Printer Fl_Printer;
#endif
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx
index 7214ea1b7..bef1c25a3 100644
--- a/src/Fl_Printer.cxx
+++ b/src/Fl_Printer.cxx
@@ -78,7 +78,8 @@ const char *Fl_Printer::property_cancel = "Cancel";
const char *Fl_Printer::device_type = "Fl_Printer";
-void Fl_Printer::set_current()
+#if defined(__APPLE__) || defined(WIN32)
+void Fl_System_Printer::set_current(void)
{
#ifdef __APPLE__
fl_gc = (CGContextRef)gc;
@@ -87,6 +88,7 @@ void Fl_Printer::set_current()
#endif
this->Fl_Surface_Device::set_current();
}
+#endif
//
// End of "$Id$".
diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm
index 479cd846d..825826457 100644
--- a/src/Fl_Quartz_Printer.mm
+++ b/src/Fl_Quartz_Printer.mm
@@ -41,6 +41,7 @@ Fl_System_Printer::Fl_System_Printer(void)
y_offset = 0;
scale_x = scale_y = 1.;
type_ = device_type;
+ gc = 0;
driver(fl_graphics_driver);
}