Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Remove debug printing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Nov 13, 2022
1 parent 9d9cdfa commit c394684
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,9 @@ int main(int argc, char **argv)
vramSetBankA(VRAM_A_MAIN_BG);
vramSetBankC(VRAM_C_SUB_BG);

PrintConsole consoleTop;
consoleInit(&consoleTop, 1, BgType_Text4bpp, BgSize_T_256x256, 31, 0, true, true);
consoleSelect(&consoleTop);

// int bgTop = bgInit(2, BgType_Bmp8, BgSize_B8_512x256, 0, 0);
// dmaCopy(backgroundBitmap, bgGetGfxPtr(bgTop), 512 * 192);
// dmaCopy(backgroundPal, BG_PALETTE, 256 * 2);
int bgTop = bgInit(2, BgType_Bmp8, BgSize_B8_512x256, 0, 0);
dmaCopy(backgroundBitmap, bgGetGfxPtr(bgTop), 512 * 192);
dmaCopy(backgroundPal, BG_PALETTE, 256 * 2);

int bgSub = bgInitSub(3, BgType_Bmp16, BgSize_B16_256x256, 0, 0);
FrameBuffer vramSub = bgGetGfxPtr(bgSub);
Expand Down Expand Up @@ -263,10 +259,10 @@ int main(int argc, char **argv)
}

// scroll background on top screen
// bgSetScroll(bgTop, bgScrollX++, 0);
// if (bgScrollX > 255)
// bgScrollX = 0;
// bgUpdate();
bgSetScroll(bgTop, bgScrollX++, 0);
if (bgScrollX > 255)
bgScrollX = 0;
bgUpdate();

// draw stuff if touching the screen
if (keysHeld() & KEY_TOUCH)
Expand Down

0 comments on commit c394684

Please sign in to comment.