summaryrefslogtreecommitdiff
path: root/src/slot_machine.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-08-26 14:54:33 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-08-26 14:54:33 -0400
commit738dac67fc5c2215f8bce55748654372a309036a (patch)
tree6e1e9f97b788a9a34a12c7f894af3c4b4e54b30e /src/slot_machine.c
parent634fe80e9dcaffc9b1cf622b3132e686e926e97f (diff)
Eliminate `struct TextColor` definition and use
Diffstat (limited to 'src/slot_machine.c')
-rw-r--r--src/slot_machine.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slot_machine.c b/src/slot_machine.c
index 740234d95..28292902f 100644
--- a/src/slot_machine.c
+++ b/src/slot_machine.c
@@ -2074,7 +2074,7 @@ static bool32 sub_8141180(u8 a0)
static bool8 sub_8141198(u8 * state, struct SlotMachineSetupTaskData * ptr)
{
u16 pal;
- struct TextColor textColor;
+ u8 textColor[3];
u32 x;
switch (*state)
@@ -2125,10 +2125,10 @@ static bool8 sub_8141198(u8 * state, struct SlotMachineSetupTaskData * ptr)
PutWindowTilemap(1);
x = 0xEC - GetStringWidth(0, gString_SlotMachineControls, 0);
- textColor.fgColor = 15;
- textColor.bgColor = 1;
- textColor.shadowColor = 2;
- AddTextPrinterParameterized3(1, 0, x, 0, &textColor, 0, gString_SlotMachineControls);
+ textColor[0] = 15;
+ textColor[1] = 1;
+ textColor[2] = 2;
+ AddTextPrinterParameterized3(1, 0, x, 0, textColor, 0, gString_SlotMachineControls);
CopyBgTilemapBufferToVram(0);
SetGpuRegBits(REG_OFFSET_DISPCNT, DISPCNT_MODE_0 | 0x20 | DISPCNT_OBJ_1D_MAP | DISPCNT_OBJ_ON);