summaryrefslogtreecommitdiff
path: root/src/mail.c
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-05-09 12:52:39 -0500
committerYamaArashi <YamaArashi@users.noreply.github.com>2017-05-09 10:52:39 -0700
commitfbebe08ae94b8e165ba120d71959554765307ce3 (patch)
tree8bbf39cf53e1c523b910d4f2e20e280e8f041f18 /src/mail.c
parent53a02e080f973071a92c141c031eb912f6ad119d (diff)
use macros to set DISPCNT and BG*CNT registers (#286)
* use macros to set DISPCNT and BG*CNT registers * add a few more
Diffstat (limited to 'src/mail.c')
-rw-r--r--src/mail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mail.c b/src/mail.c
index 9964f2a79..807864332 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -273,11 +273,11 @@ static u8 sub_80F8A28(void)
RETURN_SKIP_STATE;
case 18:
- REG_BG0CNT = 0x9F08;
- REG_BG1CNT = 0x0801;
- REG_BG2CNT = 0x0902;
+ REG_BG0CNT = BGCNT_PRIORITY(0) | BGCNT_CHARBASE(2) | BGCNT_SCREENBASE(31) | BGCNT_16COLOR | BGCNT_TXT256x512;
+ REG_BG1CNT = BGCNT_PRIORITY(1) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(8) | BGCNT_16COLOR | BGCNT_TXT256x256;
+ REG_BG2CNT = BGCNT_PRIORITY(2) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(9) | BGCNT_16COLOR | BGCNT_TXT256x256;
REG_BLDCNT = 0;
- REG_DISPCNT = DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON | DISPCNT_BG1_ON | DISPCNT_BG2_ON | DISPCNT_OBJ_ON;
+ REG_DISPCNT = DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON | DISPCNT_BG1_ON | DISPCNT_BG2_ON | DISPCNT_OBJ_ON;
BeginNormalPaletteFade(-1, 0, 16, 0, 0);
gPaletteFade.bufferTransferDisabled = 0;
ewram0.varF0 = sub_80F8F58;