mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 04:31:25 +08:00
Have fl_draw_image(buf,X,Y,W,H,D,L) support negative D and/or L arguments on Mac OS X - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -53,8 +53,12 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
|
||||
{
|
||||
if (!linedelta) linedelta = W*abs(delta);
|
||||
|
||||
const void *array = buf;
|
||||
uchar *tmpBuf = 0;
|
||||
if (!cb) {
|
||||
if (delta < 0) buf -= (W-1)*(-delta);
|
||||
if (linedelta < 0) buf -= (H-1)*abs(delta)*W;
|
||||
}
|
||||
const void *array = buf;
|
||||
if (cb || Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
|
||||
tmpBuf = new uchar[ H*W*abs(delta) ];
|
||||
if (cb) {
|
||||
|
||||
Reference in New Issue
Block a user