From 16d983eab4da12b678441d498db4e438c9fe6aca Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 22 Mar 2011 17:14:37 +0000 Subject: Mac OS: correct handling of fl_draw_image() call with L > W*D when printing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_draw_image_mac.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index 86a86158a..32b365b17 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -71,7 +71,11 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, cb(userdata, 0, i, W, tmpBuf+i*W*delta); } } else { - memcpy(tmpBuf, buf, H*W*delta); + uchar *p = tmpBuf; + for (int i=0; i