summaryrefslogtreecommitdiff
path: root/src/slot_machine.c
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-02-11 00:05:20 -0500
committerPhlosioneer <mattmdrr2@gmail.com>2019-02-11 00:34:50 -0500
commitd979ac3bf3924051de8bb4154e8398083535eabb (patch)
tree9fbdace0b39e7ce58289720ea556817d7479a204 /src/slot_machine.c
parent6f1d2b870c1426e7f405f3b3bc4ff2b9edb380e1 (diff)
Document main_menu state machine, name window constants
The new names for the constants (and newly named functions) give a much better understanding of what the window system is trying to do.
Diffstat (limited to 'src/slot_machine.c')
-rw-r--r--src/slot_machine.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slot_machine.c b/src/slot_machine.c
index 0871506cd..bf26de437 100644
--- a/src/slot_machine.c
+++ b/src/slot_machine.c
@@ -1026,7 +1026,7 @@ void PlaySlotMachine(u8 arg0, MainCallback cb)
{
if (gMain.newKeys & (A_BUTTON | B_BUTTON))
{
- sub_8197434(0, TRUE);
+ ClearWindowAndWideBorder(0, TRUE);
sSlotMachine->state = 5;
}
return FALSE;
@@ -1269,7 +1269,7 @@ void PlaySlotMachine(u8 arg0, MainCallback cb)
s8 input = Menu_ProcessInputNoWrapClearOnChoose();
if (input == 0)
{
- sub_8197434(0, TRUE);
+ ClearWindowAndWideBorder(0, TRUE);
sub_8103D8C(0);
sub_8103D8C(1);
sub_8103D8C(2);
@@ -1278,7 +1278,7 @@ void PlaySlotMachine(u8 arg0, MainCallback cb)
}
else if (input == 1 || input == -1)
{
- sub_8197434(0, TRUE);
+ ClearWindowAndWideBorder(0, TRUE);
sSlotMachine->state = 5;
}
return FALSE;
@@ -1297,7 +1297,7 @@ void PlaySlotMachine(u8 arg0, MainCallback cb)
{
if (gMain.newKeys & (A_BUTTON | B_BUTTON))
{
- sub_8197434(0, TRUE);
+ ClearWindowAndWideBorder(0, TRUE);
sSlotMachine->state = 5;
}
return FALSE;
@@ -1316,7 +1316,7 @@ void PlaySlotMachine(u8 arg0, MainCallback cb)
{
if (gMain.newKeys & (A_BUTTON | B_BUTTON))
{
- sub_8197434(0, TRUE);
+ ClearWindowAndWideBorder(0, TRUE);
sSlotMachine->state = 27;
}
return FALSE;
@@ -3036,7 +3036,7 @@ s16 sub_8102D5C(s16 a0)
sub_81065DC();
AddWindow(&gUnknown_085A7444);
PutWindowTilemap(1);
- FillWindowPixelBuffer(1, 0);
+ FillWindowPixelBuffer(1, PIXEL_BUFFER_TRANSPARENT);
task->data[0]++;
}
@@ -3052,7 +3052,7 @@ s16 sub_8102D5C(s16 a0)
{
if (gMain.newKeys & (B_BUTTON | SELECT_BUTTON))
{
- FillWindowPixelBuffer(1, 0);
+ FillWindowPixelBuffer(1, PIXEL_BUFFER_TRANSPARENT);
ClearWindowTilemap(1);
CopyWindowToVram(1, 1);
RemoveWindow(1);