Author: manolo
Date: 2010-06-17 14:08:16 -0700 (Thu, 17 Jun 2010)
New Revision: 7646
Log:
Correct way to test for device-specificity under Mac OS X

Modified:
   branches/branch-1.3/src/fl_draw_pixmap.cxx

Modified: branches/branch-1.3/src/fl_draw_pixmap.cxx
===================================================================
--- branches/branch-1.3/src/fl_draw_pixmap.cxx  2010-06-16 17:19:02 UTC (rev 
7645)
+++ branches/branch-1.3/src/fl_draw_pixmap.cxx  2010-06-17 21:08:16 UTC (rev 
7646)
@@ -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 @@
 #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;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to