Skip to content

Commit

Permalink
CpuFastFill for initializing, thanks SBird
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Jun 2, 2023
1 parent 271bca6 commit 43da48f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pokedex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -4562,6 +4562,10 @@ static void DrawFootprint(u8 windowId, u16 dexNum)
}
}
}
else
{
CpuFastFill(0, footprint4bpp, sizeof(footprint4bpp));
}
CopyToWindowPixelBuffer(windowId, footprint4bpp, sizeof(footprint4bpp), 0);
}

Expand Down

0 comments on commit 43da48f

Please sign in to comment.