}
// We should avoid reading beyond scanline ends for safety
- if(aligned_line < (dst_line - x_dst) ||
- (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - x_dst) + p_dst->bits.width))
+ if(aligned_line < (dst_line - dest_x) ||
+ (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - dest_x) + dst_image->bits.width))
{
// switch to precise read
copy_offset = kernel_offset = 0;
}
// We should avoid reading beyond scanline ends for safety
- if(aligned_line < (dst_line - x_dst) ||
- (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - x_dst) + p_dst->bits.width))
+ if(aligned_line < (dst_line - dest_x) ||
+ (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - dest_x) + dst_image->bits.width))
{
// switch to precise read
copy_offset = kernel_offset = 0;
}
// We should avoid reading beyond scanline ends for safety
- if(aligned_line < (dst_line - x_dst) ||
- (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - x_dst) + p_dst->bits.width))
+ if(aligned_line < (dst_line - dest_x) ||
+ (aligned_line + (copy_count * 16 / sizeof(*dst_line))) > ((dst_line - dest_x) + dst_image->bits.width))
{
// switch to precise read
copy_offset = kernel_offset = 0;