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
This commit is contained in:
parent
8767da2dfd
commit
be7e7f0ee8
@ -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++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user