summaryrefslogtreecommitdiff
path: root/src/naming_screen.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/naming_screen.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/naming_screen.c')
-rw-r--r--src/naming_screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/naming_screen.c b/src/naming_screen.c
index f00a9bd3e..b14c690e2 100644
--- a/src/naming_screen.c
+++ b/src/naming_screen.c
@@ -298,10 +298,10 @@ static void NamingScreen_SetUpVideoRegs(void)
REG_BG2VOFS = 0;
REG_BG3HOFS = 0;
REG_BG3VOFS = 0;
- REG_BG0CNT = 0x1F00;
- REG_BG1CNT = 0x1C01;
- REG_BG2CNT = 0x1D0A;
- REG_BG3CNT = 0x1E03;
+ REG_BG0CNT = BGCNT_PRIORITY(0) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(31) | BGCNT_16COLOR | BGCNT_TXT256x256;
+ REG_BG1CNT = BGCNT_PRIORITY(1) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(28) | BGCNT_16COLOR | BGCNT_TXT256x256;
+ REG_BG2CNT = BGCNT_PRIORITY(2) | BGCNT_CHARBASE(2) | BGCNT_SCREENBASE(29) | BGCNT_16COLOR | BGCNT_TXT256x256;
+ REG_BG3CNT = BGCNT_PRIORITY(3) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(30) | BGCNT_16COLOR | BGCNT_TXT256x256;
REG_BLDCNT = 0x640;
REG_BLDALPHA = 0x80C;
}