From be7e7f0ee88f18da253f86804f8d58a8bbbb1f76 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 13 Sep 2017 07:28:35 +0000 Subject: Mac OS: use Fl_Graphics_Driver::has_feature(PRINTER) to detect when drawing to a printer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/Quartz') diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx index a49d2d15c..e4445ced3 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx @@ -62,7 +62,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, if (linedelta < 0) buf -= (H-1)*abs(linedelta); } const void *array = buf; - if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { + if (cb || driver->has_feature(Fl_Quartz_Graphics_Driver::PRINTER)) { tmpBuf = new uchar[ H*W*abs(delta) ]; if (cb) { for (int i=0; i