From ce173c122d0bd1c69916701facde84e1cb3758f3 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sat, 25 May 2024 09:31:01 -0600 Subject: [PATCH] Unstubbed Texture_Scroll and fixed Texture_Mottle --- src/engine/fox_std_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c index dac86d0d..8270dc08 100644 --- a/src/engine/fox_std_lib.c +++ b/src/engine/fox_std_lib.c @@ -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];