From 32d4bc4099ac62a32166c9d39ddd47d6a193be2a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 18 Mar 2012 18:48:29 +0000 Subject: Fix STR#2810: removed all uses of function Fl_Device::class_name(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_draw_image_mac.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fl_draw_image_mac.cxx') diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index 9a97eb6a5..3a177ff1e 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -3,7 +3,7 @@ // // MacOS image drawing code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2012 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -55,7 +55,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, const void *array = buf; uchar *tmpBuf = 0; - if (cb || Fl_Surface_Device::surface()->class_name() == Fl_Printer::class_id) { + if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { tmpBuf = new uchar[ H*W*delta ]; if (cb) { for (int i=0; i