home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / misc / imagefx_sdk / sas / scanlib / undoreg.c < prev   
Encoding:
C/C++ Source or Header  |  1993-11-30  |  295 b   |  13 lines

  1. #include <scan/modall.h>
  2.  
  3. BOOL SaveUndoRegion (struct Buffer *buf)
  4. {
  5.    if (buf->Mask) {
  6.       return(SaveUndo(buf, buf->Mask->OffsetX, buf->Mask->OffsetY, buf->Mask->Width, buf->Mask->Height));
  7.    }
  8.    else {
  9.       return(SaveUndo(buf, 0, 0, buf->Width, buf->Height));
  10.    }
  11.    return(FALSE);
  12. }
  13.