diff --git a/source_files/epi/image_data.cc b/source_files/epi/image_data.cc index 373e8b52..9bfa83c2 100644 --- a/source_files/epi/image_data.cc +++ b/source_files/epi/image_data.cc @@ -701,8 +701,7 @@ void image_data_c::Swirl(int leveltime, int thickness) u8_t *src = pixels + (y1 * width + x1) * bpp; u8_t *dest = new_pixels + (y * width + x) * bpp; - for (int i = 0; i < bpp; i++) - *dest++ = *src++; + memcpy(dest, src, bpp); } } delete[] pixels;