summaryrefslogtreecommitdiff
path: root/src/credits.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-03-29 09:38:19 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-03-29 09:38:19 -0400
commit62968895ca220cf5b6f7c066e9061cf45fe7913e (patch)
tree43b983e09edbe4478f3c11399e4ec2f4d7338e37 /src/credits.c
parent357c5439f5170ec1ebb1fe52c00d8d934b65c6bc (diff)
Add MON_PIC_SIZE constant
Diffstat (limited to 'src/credits.c')
-rw-r--r--src/credits.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/credits.c b/src/credits.c
index 16d71f3e9..2045d116a 100644
--- a/src/credits.c
+++ b/src/credits.c
@@ -288,7 +288,7 @@ static const union AnimCmd *const sAnims_Rival[] =
sAnim_Rival_Still,
};
-#define MONBG_OFFSET (0x800 * 3)
+#define MONBG_OFFSET (MON_PIC_SIZE * 3)
static const struct SpriteSheet sSpriteSheet_MonBg[] = {
{ gDecompressionBuffer, MONBG_OFFSET, TAG_MON_BG },
{},
@@ -566,12 +566,12 @@ static void Task_CreditsLoadGrassScene(u8 taskIdA)
LZ77UnCompVram(gBirchGrassTilemap, (void *)(BG_SCREEN_ADDR(7)));
LoadPalette(gBirchBagGrassPal[0] + 1, 1, 31 * 2);
- for (i = 0; i < 0x800; i++)
+ for (i = 0; i < MON_PIC_SIZE; i++)
gDecompressionBuffer[i] = 0x11;
- for (i = 0; i < 0x800; i++)
- (gDecompressionBuffer + 0x800)[i] = 0x22;
- for (i = 0; i < 0x800; i++)
- (gDecompressionBuffer + 0x800 * 2)[i] = 0x33;
+ for (i = 0; i < MON_PIC_SIZE; i++)
+ (gDecompressionBuffer + MON_PIC_SIZE)[i] = 0x22;
+ for (i = 0; i < MON_PIC_SIZE; i++)
+ (gDecompressionBuffer + MON_PIC_SIZE * 2)[i] = 0x33;
temp = (u16 *)(&gDecompressionBuffer[MONBG_OFFSET]);
temp[0] = RGB_BLACK;