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 --- src/Fl_Bitmap.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/Fl_Bitmap.cxx') diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index da64c878e..42be41a77 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -150,6 +150,10 @@ void fl_delete_bitmask(Fl_Bitmask bm) { } +#elif defined(FL_PORTING) + +# pragma message "FL_PORTING: implement fl_create_bitmap" + #else // X11 bitmask functions @@ -262,8 +266,10 @@ int Fl_Bitmap::start(int XP, int YP, int WP, int HP, int &cx, int &cy, if (H <= 0) return 1; #if defined(WIN32) if (!id_) id_ = fl_create_bitmap(w(), h(), array); -#else +#elif defined(__APPLE__) || defined(USE_X11) if (!id_) id_ = fl_create_bitmask(w(), h(), array); +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: call the right funtion to create a bitmap" #endif return 0; } @@ -345,6 +351,10 @@ void Fl_GDI_Printer_Graphics_Driver::draw(Fl_Bitmap *bm, int XP, int YP, int WP, DeleteDC(tempdc); } +#elif defined(FL_PORTING) + +# pragma message "FL_PORTING: implement Fl_Xlib_Graphics_Driver::draw()" + #else // Xlib void Fl_Xlib_Graphics_Driver::draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy) { int X, Y, W, H; @@ -375,8 +385,10 @@ void Fl_Bitmap::uncache() { if (id_) { #ifdef __APPLE_QUARTZ__ fl_delete_bitmask((Fl_Bitmask)id_); -#else +#elif defined(WIN32) || defined(USE_X11) fl_delete_bitmask((Fl_Offscreen)id_); +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: call the right funtion to create a bitmask" #endif id_ = 0; } -- cgit v1.2.3