Skip to content

Commit

Permalink
Fix old compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaizu committed Feb 3, 2024
1 parent a08c6d4 commit 6265f7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/contest_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,8 @@ static s32 DrawResultsTextWindow(const u8 *text, u8 spriteId)
u8 *spriteTilePtrs[4];
u8 *dst;
s32 i;
struct Sprite *sprite;
const u8 *src, *windowTilesPtr;

struct WindowTemplate windowTemplate;
memset(&windowTemplate, 0, sizeof(windowTemplate));
Expand All @@ -1190,9 +1192,6 @@ static s32 DrawResultsTextWindow(const u8 *text, u8 spriteId)

AddTextPrinterParameterized3(windowId, FONT_NORMAL, (tileWidth * 8 - strWidth) / 2, 1, sContestLinkTextColors, TEXT_SKIP_DRAW, text);


struct Sprite *sprite;
const u8 *src, *windowTilesPtr;
windowTilesPtr = (u8 *)GetWindowAttribute(windowId, WINDOW_TILE_DATA);
src = (u8 *)sResultsTextWindow_Gfx;

Expand Down

0 comments on commit 6265f7e

Please sign in to comment.