summaryrefslogtreecommitdiff
path: root/src/Fl_Pixmap.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-27 22:35:58 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-27 22:35:58 +0000
commit780f43a4f14f56678c503fa279517c418b697877 (patch)
treefdb76e5f5b0b47ca652b497e5c096d60d0a67c54 /src/Fl_Pixmap.cxx
parent6177c23d901c8748fd908b3bd1106b403f017d7f (diff)
Removed all references to Quartz driver files from library headers in Xcode. Works in Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Pixmap.cxx')
-rw-r--r--src/Fl_Pixmap.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx
index da0c35c65..332def3c6 100644
--- a/src/Fl_Pixmap.cxx
+++ b/src/Fl_Pixmap.cxx
@@ -32,7 +32,9 @@
#include <FL/Fl_Pixmap.H>
#include <FL/Fl_Printer.H>
-#if defined(WIN32) || defined(__APPLE__)
+#if defined(WIN32)
+#elif defined(__APPLE__)
+#include "src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h"
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: this file needs a lot of custom code to draw Pixmaps correctly"
#else
@@ -146,12 +148,6 @@ int Fl_Pixmap::prepare(int XP, int YP, int WP, int HP, int &cx, int &cy,
#ifdef __APPLE__ // Apple, Mac OS X
//------------------------------------------------------------------------------
-void Fl_Quartz_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) {
- int X, Y, W, H;
- if (pxm->prepare(XP, YP, WP, HP, cx, cy, X, Y, W, H)) return;
- copy_offscreen(X, Y, W, H, (Fl_Offscreen)pxm->id_, cx, cy);
-}
-
//------------------------------------------------------------------------------
#elif defined(WIN32) // Windows GDI
//------------------------------------------------------------------------------