Unstubbed Texture_Scroll and fixed Texture_Mottle

This commit is contained in:
KiritoDv 2024-05-25 09:31:01 -06:00 committed by Sonic Dreamcaster
parent 80c199467b
commit ce173c122d

View File

@ -26,6 +26,7 @@ s32 Graphics_Printf(const char* fmt, ...) {
}
void Lib_Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) {
// LTodo: [HD-Textures] This is broken
u16* pixel = SEGMENTED_TO_VIRTUAL(texture);
u16 tempPxl;
s32 u;
@ -98,7 +99,7 @@ void Lib_Texture_Mottle(u16* dst, u16* src, u8 mode) {
break;
case 3:
for (v = 0; v < 22 * 64; v += 64) { // should be 32 * 64?
for (v = 0; v < 32 * 64; v += 64) { // should be 32 * 64?
offset = __sinf((s32) (((v / 64) + (gGameFrameCount / 4)) % 32U) * (2 * M_PI / 8));
for (u = 0; u < 64; u++) {
dst[v + (offset + u) % 64U] = src[v + u];