Merge pull request #86 from TheBreadPerson/word
Complete refactor of naming conventions for memcpy
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user