diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2017-05-09 12:52:39 -0500 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-05-09 10:52:39 -0700 |
commit | fbebe08ae94b8e165ba120d71959554765307ce3 (patch) | |
tree | 8bbf39cf53e1c523b910d4f2e20e280e8f041f18 /src/clear_save_data_menu.c | |
parent | 53a02e080f973071a92c141c031eb912f6ad119d (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/clear_save_data_menu.c')
-rw-r--r-- | src/clear_save_data_menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clear_save_data_menu.c b/src/clear_save_data_menu.c index 6b0cc821a..21cd643ef 100644 --- a/src/clear_save_data_menu.c +++ b/src/clear_save_data_menu.c @@ -41,7 +41,7 @@ static void Task_InitMenu(u8 taskId) { ResetSpriteData(); - REG_DISPCNT = DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON | DISPCNT_BG3_ON | DISPCNT_OBJ_ON; + REG_DISPCNT = DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON | DISPCNT_BG3_ON | DISPCNT_OBJ_ON; SetVBlankCallback(VBlankCB_ClearSaveDataScreen); MenuDrawTextWindow(2, 14, 27, 19); @@ -148,8 +148,8 @@ static u8 InitClearSaveDataScreen(void) SetVBlankCallback(VBlankCB_InitClearSaveDataScreen); - REG_BG3CNT = 0x0703; - REG_DISPCNT = 0x0900; + REG_BG3CNT = BGCNT_PRIORITY(3) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(7) | BGCNT_16COLOR | BGCNT_TXT256x256; + REG_DISPCNT = DISPCNT_MODE_0 | DISPCNT_BG0_ON | DISPCNT_BG3_ON; gMain.state = 1; return 0; case 1: |