Skip to content

Commit

Permalink
consolidate down arrow tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
cawtds committed Jan 7, 2025
1 parent 2a3e92e commit 250853a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Binary file removed graphics/fonts/down_arrow.png
Binary file not shown.
Binary file removed graphics/fonts/down_arrow_2.png
Binary file not shown.
Binary file removed graphics/fonts/down_arrow_RS.png
Binary file not shown.
Binary file removed graphics/fonts/down_arrow_RS_2.png
Binary file not shown.
Binary file added graphics/fonts/down_arrows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions src/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#define CURSOR_DELAY 8

#define DARK_DOWN_ARROW_OFFSET 256

extern const struct OamData gOamData_AffineOff_ObjNormal_16x16;

static void DecompressGlyph_NormalCopy1(u16 glyphId, bool32 isJapanese);
Expand All @@ -26,10 +28,7 @@ static void SpriteCB_TextCursor(struct Sprite *sprite);

COMMON_DATA TextFlags gTextFlags = {0};

static const u8 sDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow.4bpp");
static const u8 sDarkDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_RS.4bpp");
static const u8 sTinyArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_2.4bpp");
static const u8 sTinyDarkDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrow_RS_2.4bpp");
static const u8 sDownArrowTiles[] = INCBIN_U8("graphics/fonts/down_arrows.4bpp");
static const u8 sDoubleArrowTiles1[] = INCBIN_U8("graphics/fonts/down_arrow_3.4bpp");
static const u8 sDoubleArrowTiles2[] = INCBIN_U8("graphics/fonts/down_arrow_4.4bpp");

Expand Down Expand Up @@ -497,7 +496,7 @@ void TextPrinterDrawDownArrow(struct TextPrinter *textPrinter)
arrowTiles = sDownArrowTiles;
break;
case 1:
arrowTiles = sDarkDownArrowTiles;
arrowTiles = &sDownArrowTiles[DARK_DOWN_ARROW_OFFSET];
break;
}

Expand Down Expand Up @@ -605,7 +604,7 @@ void DrawDownArrow(u8 windowId, u16 x, u16 y, u8 bgColor, bool8 drawArrow, u8 *c
arrowTiles = sDownArrowTiles;
break;
case 1:
arrowTiles = sDarkDownArrowTiles;
arrowTiles = &sDownArrowTiles[DARK_DOWN_ARROW_OFFSET];
break;
}

Expand Down

0 comments on commit 250853a

Please sign in to comment.