From acf6c881d36b675d755433d3cf48613bc46ed78d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 3 Jan 2016 22:54:29 +0000 Subject: Updated platform specific #if's to report unimplemented code when compiling with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_PostScript.H | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'FL/Fl_PostScript.H') diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index c635e88ef..1c048391f 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -201,6 +201,12 @@ class Clip { void draw(const char* s, int nBytes, int x, int y) {transformed_draw(s,nBytes,x,y); }; #ifdef __APPLE__ void draw(const char* s, int nBytes, float x, float y) {transformed_draw(s,nBytes,x,y); }; +#elif defined(WIN32) + // not needed +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define floating point position text drawing if you have it" +#else // X11 + // not needed #endif void draw(int angle, const char *str, int n, int x, int y); void rtl_draw(const char* s, int n, int x, int y); @@ -226,6 +232,12 @@ class Clip { class FL_EXPORT Fl_PostScript_File_Device : public Fl_Paged_Device { #ifdef __APPLE__ CGContextRef gc; +#elif defined(WIN32) + // not needed +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define storage for your graphics context in Fl_Postscript_File_Device if needed" +#else // X11 + // not needed #endif protected: Fl_PostScript_Graphics_Driver *driver(); @@ -252,6 +264,12 @@ public: void end_job(void); #ifdef __APPLE__ void set_current() { fl_gc = gc; Fl_Paged_Device::set_current(); } +#elif defined(WIN32) + // not needed +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: set access to your graphics context in Fl_Postscript_File_Device if needed" +#else // X11 + // not needed #endif static const char *file_chooser_title; -- cgit v1.2.3