Complete refactor of naming conventions for memcpy

This commit is contained in:
TheBreadPerson
2025-08-08 14:04:09 -04:00
parent b98025619f
commit 6007071b7d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -136,6 +136,6 @@ void memcpy16_tile8_with_palette_offset(u16* dst, const u16* src, uint hwcount,
* This is useful because grit always loads the palette to the beginning of * This is useful because grit always loads the palette to the beginning of
* pal_bg_mem[] * pal_bg_mem[]
*/ */
void memcpy32_tile8_with_palette_offset(u32* dst, const u32* src, uint hwcount, u8 palette_offset); void memcpy32_tile8_with_palette_offset(u32* dst, const u32* src, uint wcount, u8 palette_offset);
#endif //GRAPHIC_UTILS_H #endif //GRAPHIC_UTILS_H
+2 -2
View File
@@ -178,10 +178,10 @@ void memcpy16_tile8_with_palette_offset(u16* dst, const u16* src, uint hwcount,
} }
} }
void memcpy32_tile8_with_palette_offset(u32* dst, const u32* src, uint hwcount, u8 palette_offset) void memcpy32_tile8_with_palette_offset(u32* dst, const u32* src, uint wcount, u8 palette_offset)
{ {
const u32 offset = (palette_offset << 24) | (palette_offset << 16) | (palette_offset << 8) | palette_offset; const u32 offset = (palette_offset << 24) | (palette_offset << 16) | (palette_offset << 8) | palette_offset;
for (int i = 0; i < hwcount; i++) for (int i = 0; i < wcount; i++)
{ {
// Copying u8 data 4 times across u32 data // Copying u8 data 4 times across u32 data
dst[i] = src[i] + offset; dst[i] = src[i] + offset;