diff options
| author | Manolo Gouy <Manolo> | 2017-09-13 07:28:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-09-13 07:28:35 +0000 |
| commit | be7e7f0ee88f18da253f86804f8d58a8bbbb1f76 (patch) | |
| tree | b7c8a538e839626758fde5da8e202394e893eea9 /src | |
| parent | 8767da2dfd454189a334c3c0ca5182de3bc831a4 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<H; i++) { |
