Diff of /filter.c [3af83f] .. [15dc8a] Maximize Restore

  Switch to unified view

a/filter.c b/filter.c
...
...
979
                        
979
                        
980
980
981
// Crop Image to selection rectangle    
981
// Crop Image to selection rectangle    
982
int CropImage(Image *im, PTRect *r){
982
int CropImage(Image *im, PTRect *r){
983
983
984
        pt_int32 x,y,i;
984
        uint32_t x,y,i;
985
        unsigned char *src, *dst, **data = NULL;
985
        unsigned char *src, *dst, **data = NULL;
986
        pt_int32 width = r->right - r->left;
986
        uint32_t width = r->right - r->left;
987
        pt_int32 height = r->bottom - r->top;
987
        uint32_t height = r->bottom - r->top;
988
        int bytesPerPixel = im->bitsPerPixel / 8 ;
988
        int bytesPerPixel = im->bitsPerPixel / 8 ;
989
        int bytesPerLine = width * im->bitsPerPixel / 8 ;
989
        int bytesPerLine = width * im->bitsPerPixel / 8 ;
990
        size_t dataSize = bytesPerLine * height;
990
        size_t dataSize = bytesPerLine * height;
991
991
992
        // Some checks first
992
        // Some checks first