From a8d57d7d17429b547d94abdbc6fad0efbcef3151 Mon Sep 17 00:00:00 2001 From: rmn20 Date: Fri, 17 Jan 2025 16:42:19 +0300 Subject: [PATCH] Use swiCopy to copy texture data in Graphics_NDS --- src/Graphics_NDS.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Graphics_NDS.c b/src/Graphics_NDS.c index 48040144e..ff391be0b 100644 --- a/src/Graphics_NDS.c +++ b/src/Graphics_NDS.c @@ -130,10 +130,8 @@ GfxResourceID Gfx_AllocTexture(struct Bitmap* bmp, int rowWidth, cc_uint8 flags, for (int y = 0; y < bmp->height; y++) { 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