donotturnoff / aerend

My third year project
0 stars 0 forks source link

Ensure `clipped_src_w` and `clipped_src_h` are computed correctly #160

Open donotturnoff opened 2 years ago

donotturnoff commented 2 years ago
    int32_t clipped_src_w = std::min(src_w-(clipped_x-x), w-clipped_x);
    int32_t clipped_src_h = std::min(src_h-(clipped_y-y), h-clipped_y);

in Bitmap.

Should the second argument to min be w-x and h-y?