mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
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:
@@ -56,7 +56,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
|
|||||||
uchar *tmpBuf = 0;
|
uchar *tmpBuf = 0;
|
||||||
if (!cb) {
|
if (!cb) {
|
||||||
if (delta < 0) buf -= (W-1)*(-delta);
|
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;
|
const void *array = buf;
|
||||||
if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
|
if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user