mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Use swiCopy to copy texture data in Graphics_NDS
This commit is contained in:
parent
eb4137aefd
commit
a8d57d7d17
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue