summaryrefslogtreecommitdiff
path: root/src/fl_draw_pixmap.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-06-17 21:08:16 +0000
committerManolo Gouy <Manolo>2010-06-17 21:08:16 +0000
commit8c02ae87cb936e37fbc677b74eee269599c62e87 (patch)
treeff83d15cbb9bd7fb4fbe8692ec7da81835cfd69a /src/fl_draw_pixmap.cxx
parent9a026f9dcd0a1149e0638ddc1e442e74b12b5caa (diff)
Correct way to test for device-specificity under Mac OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_pixmap.cxx')
-rw-r--r--src/fl_draw_pixmap.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx
index c674a6791..edbcc8f4c 100644
--- a/src/fl_draw_pixmap.cxx
+++ b/src/fl_draw_pixmap.cxx
@@ -40,9 +40,6 @@
#include <FL/x.H>
#include <stdio.h>
#include "flstring.h"
-#ifdef __APPLE_QUARTZ__
-#include <FL/Fl_Printer.H>
-#endif
static int ncolors, chars_per_pixel;
@@ -344,7 +341,7 @@ int fl_draw_pixmap(const char*const* cdata, int x, int y, Fl_Color bg) {
#endif
#ifdef __APPLE_QUARTZ__
- if (fl_surface->type() == Fl_Printer::device_type) {
+ if (fl_surface->driver()->type() == Fl_Quartz_Graphics_Driver::device_type ) {
bool transparent = (transparent_index>=0);
transparent = true;
U32 *array = new U32[d.w * d.h], *q = array;