Use swiCopy to copy texture data in Graphics_NDS

This commit is contained in:
rmn20 2025-01-17 16:42:19 +03:00
parent eb4137aefd
commit a8d57d7d17

View file

@ -131,9 +131,7 @@ GfxResourceID Gfx_AllocTexture(struct Bitmap* bmp, int rowWidth, cc_uint8 flags,
cc_uint16* src = bmp->scan0 + y * rowWidth;
cc_uint16* dst = tmp + y * bmp->width;
for (int x = 0; x < bmp->width; x++) {
dst[x] = src[x];
}
swiCopy(src, dst, bmp->width | COPY_MODE_HWORD);
}
// Palettize texture if possible