diff options
| author | Random <28494085+Random06457@users.noreply.github.com> | 2020-09-15 21:10:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-15 15:10:19 -0400 |
| commit | bfef7f8d9d3d8fd753c60fe3cad44a6129925a09 (patch) | |
| tree | b354a63daa5e6cea0bcf674ec743285144a752df /src/code/z_moji.c | |
| parent | 203cd19f8af0f8af8e291a5406ebf0b17767d081 (diff) | |
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
Diffstat (limited to 'src/code/z_moji.c')
| -rw-r--r-- | src/code/z_moji.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
