From bfef7f8d9d3d8fd753c60fe3cad44a6129925a09 Mon Sep 17 00:00:00 2001 From: Random <28494085+Random06457@users.noreply.github.com> Date: Tue, 15 Sep 2020 21:10:19 +0200 Subject: Decompile PreRender.c (#319) * Decompile PreRender.c * use NON_EQUIVALENT and run format.sh * Get rid of some magic values * rename dList/dListp to dListHead/dList * make func_800C213C NON_MATCHING * replace more values with SCREEN_WIDTH/SCREEN_HEIGHT * dList/dListHead with gfxp/gfx --- src/code/z_moji.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/code/z_moji.c') diff --git a/src/code/z_moji.c b/src/code/z_moji.c index 16649a22d..17886ba8b 100644 --- a/src/code/z_moji.c +++ b/src/code/z_moji.c @@ -85,10 +85,10 @@ void func_8007BBA8(GraphicsContext* gfxCtx, u8* arg1) { switch (arg1[i]) { case 9: D_80120120 = (((D_80120120 / 8) / 8) + 1) * 8 * 8; - if (D_80120120 >= 320) { + if (D_80120120 >= SCREEN_WIDTH) { D_80120120 = 0; D_80120124 += 8; - if (D_80120124 >= 240) { + if (D_80120124 >= SCREEN_HEIGHT) { D_80120124 = 0; } } @@ -97,7 +97,7 @@ void func_8007BBA8(GraphicsContext* gfxCtx, u8* arg1) { case 13: D_80120120 = 0; D_80120124 += 8; - if (D_80120124 >= 240) { + if (D_80120124 >= SCREEN_HEIGHT) { D_80120124 = 0; } break; -- cgit v1.2.3