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
This commit is contained in:
parent
80fffdc369
commit
16d983eab4
@ -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<H; i++) {
|
||||
memcpy(p, buf+i*linedelta, W*delta);
|
||||
p += W*delta;
|
||||
}
|
||||
}
|
||||
array = (void*)tmpBuf;
|
||||
linedelta = W*delta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user