From 43da48f9928d7eaf4b0f8f9b2167ce928563c5b4 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Fri, 2 Jun 2023 12:22:05 -0400 Subject: [PATCH] `CpuFastFill` for initializing, thanks SBird --- src/pokedex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pokedex.c b/src/pokedex.c index 13fea2979..c5b8105b2 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -4537,7 +4537,7 @@ static void PrintDecimalNum(u8 windowId, u16 num, u8 left, u8 top) static void DrawFootprint(u8 windowId, u16 dexNum) { - u8 footprint4bpp[TILE_SIZE_4BPP * NUM_FOOTPRINT_TILES] = {0}; + u8 footprint4bpp[TILE_SIZE_4BPP * NUM_FOOTPRINT_TILES]; const u8 *footprintGfx = gMonFootprintTable[NationalPokedexNumToSpecies(dexNum)]; u32 i, j, tileIdx = 0; @@ -4562,6 +4562,10 @@ static void DrawFootprint(u8 windowId, u16 dexNum) } } } + else + { + CpuFastFill(0, footprint4bpp, sizeof(footprint4bpp)); + } CopyToWindowPixelBuffer(windowId, footprint4bpp, sizeof(footprint4bpp), 0); }