mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-09 23:41:09 -04:00
Use swiCopy to copy texture data in Graphics_NDS
This commit is contained in:
parent
eb4137aefd
commit
a8d57d7d17
@ -131,9 +131,7 @@ GfxResourceID Gfx_AllocTexture(struct Bitmap* bmp, int rowWidth, cc_uint8 flags,
|
|||||||
cc_uint16* src = bmp->scan0 + y * rowWidth;
|
cc_uint16* src = bmp->scan0 + y * rowWidth;
|
||||||
cc_uint16* dst = tmp + y * bmp->width;
|
cc_uint16* dst = tmp + y * bmp->width;
|
||||||
|
|
||||||
for (int x = 0; x < bmp->width; x++) {
|
swiCopy(src, dst, bmp->width | COPY_MODE_HWORD);
|
||||||
dst[x] = src[x];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Palettize texture if possible
|
// Palettize texture if possible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user