diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index adc2ce645..12491654c 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_draw_image_mac.cxx,v 1.1.2.9 2004/08/31 22:00:48 matthiaswm Exp $" +// "$Id: fl_draw_image_mac.cxx,v 1.1.2.10 2004/09/09 23:43:40 matthiaswm Exp $" // // MacOS image drawing code for the Fast Light Tool Kit (FLTK). // @@ -165,7 +165,37 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, } } #elif defined(__APPLE_QUARTZ__) -#warning : quartz - this function is *terribly* slow. Please replace!!!! + if (delta>=1||delta<=4) { + void *array = buf; + uchar *tmpBuf; + if (cb) { + tmpBuf = new uchar[ H*W*delta ]; + for (int i=0; i