From 35010115c90f4e4f456814718d17ec89f4047677 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 2 Mar 2016 07:51:53 +0000 Subject: [PATCH] Allow fl_draw_image(buf,X,Y,W,H,D,L) calls with abs(L)>D*W on the Mac OS platform. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_draw_image_mac.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index 41333e4d8..175bbff8a 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -56,7 +56,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, uchar *tmpBuf = 0; if (!cb) { if (delta < 0) buf -= (W-1)*(-delta); - if (linedelta < 0) buf -= (H-1)*abs(delta)*W; + if (linedelta < 0) buf -= (H-1)*(-linedelta); } const void *array = buf; if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {