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
This commit is contained in:
parent
f4cc803b3c
commit
35010115c9
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user