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
This commit is contained in:
Matthias Melcher
2016-01-03 22:54:29 +00:00
parent 933b00b9c9
commit acf6c881d3
89 changed files with 628 additions and 47 deletions
+18
View File
@@ -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;