diff options
| author | Random06457 <28494085+Random06457@users.noreply.github.com> | 2023-11-24 13:31:17 +0100 |
|---|---|---|
| committer | Random06457 <28494085+Random06457@users.noreply.github.com> | 2023-11-24 13:57:39 +0100 |
| commit | e88ec3251f152f7b323da3fca5f7b8ffee0c102a (patch) | |
| tree | b306dc53565d21c9ba47f64b65a3a00a95b9ba66 | |
| parent | d52717bc3ed045ba97109a189caeeabb8ebd7f7c (diff) | |
increase overlayBuffer size to avoid THGA crash
| -rw-r--r-- | mm/include/gfx.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mm/include/gfx.h b/mm/include/gfx.h index 6657831f1..eabf8f439 100644 --- a/mm/include/gfx.h +++ b/mm/include/gfx.h @@ -110,12 +110,12 @@ typedef struct GfxPool { /* 0x00000 */ u16 headMagic; // GFXPOOL_HEAD_MAGIC /* 0x00008 */ GfxMasterList master; /* 0x00308 */ Gfx polyXluBuffer[0x800]; - /* 0x04308 */ Gfx overlayBuffer[0x400]; + /* 0x04308 */ Gfx overlayBuffer[0x800]; // 0x400 -> 0x800 to avoid thga crashes /* 0x06308 */ Gfx workBuffer[0x40]; /* 0x06508 */ Gfx debugBuffer[0x40]; /* 0x06708 */ Gfx polyOpaBuffer[0x3380]; /* 0x20308 */ u16 tailMagic; // GFXPOOL_TAIL_MAGIC -} GfxPool; // size = 0x20310 +} GfxPool; // size = 0x20310 typedef struct GraphicsContext { /* 0x000 */ Gfx* polyOpaBuffer; // Pointer to "Zelda 0" @@ -228,8 +228,10 @@ Gfx* Gfx_BranchTexScroll(Gfx** gfxp, u32 x, u32 y, s32 width, s32 height); void func_8012CB04(Gfx** gfxp, u32 x, u32 y); Gfx* func_8012CB28(GraphicsContext* gfxCtx, u32 x, u32 y); Gfx* Gfx_TexScroll(GraphicsContext* gfxCtx, u32 x, u32 y, s32 width, s32 height); -Gfx* Gfx_TwoTexScroll(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2, u32 y2, s32 width2, s32 height2); -Gfx* Gfx_TwoTexScrollEnvColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2, u32 y2, s32 width2, s32 height2, s32 r, s32 g, s32 b, s32 a); +Gfx* Gfx_TwoTexScroll(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2, + u32 y2, s32 width2, s32 height2); +Gfx* Gfx_TwoTexScrollEnvColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, + u32 x2, u32 y2, s32 width2, s32 height2, s32 r, s32 g, s32 b, s32 a); Gfx* Gfx_EnvColor(GraphicsContext* gfxCtx, s32 r, s32 g, s32 b, s32 a); Gfx* Gfx_PrimColor(GraphicsContext* gfxCtx, s32 lodfrac, s32 r, s32 g, s32 b, s32 a); void func_8012CF0C(GraphicsContext* gfxCtx, s32 clearFb, s32 clearZb, u8 r, u8 g, u8 b); |
