1889 |
|
uint8 *src = Mac2HostAddr(ReadMacInt32(p + acclSrcBaseAddr) + (src_Y * src_row_bytes) + (src_X * bpp)); |
1890 |
|
uint8 *dst = Mac2HostAddr(ReadMacInt32(p + acclDestBaseAddr) + (dest_Y * dst_row_bytes) + (dest_X * bpp)); |
1891 |
|
for (int i = 0; i < height; i++) { |
1892 |
< |
memcpy(dst, src, width); |
1892 |
> |
memmove(dst, src, width); |
1893 |
|
src += src_row_bytes; |
1894 |
|
dst += dst_row_bytes; |
1895 |
|
} |
1900 |
|
uint8 *src = Mac2HostAddr(ReadMacInt32(p + acclSrcBaseAddr) + ((src_Y + height - 1) * src_row_bytes) + (src_X * bpp)); |
1901 |
|
uint8 *dst = Mac2HostAddr(ReadMacInt32(p + acclDestBaseAddr) + ((dest_Y + height - 1) * dst_row_bytes) + (dest_X * bpp)); |
1902 |
|
for (int i = height - 1; i >= 0; i--) { |
1903 |
< |
memcpy(dst, src, width); |
1903 |
> |
memmove(dst, src, width); |
1904 |
|
src -= src_row_bytes; |
1905 |
|
dst -= dst_row_bytes; |
1906 |
|
} |