Setup DisplayArea

This commit is contained in:
Jaby
2022-10-03 16:23:35 +02:00
parent 3ee0ba72b2
commit 051ae637f1
4 changed files with 19 additions and 4 deletions

View File

@@ -45,12 +45,12 @@ namespace GPU {
static constexpr uint16_t FirstVisiblePixelV = 0xA3;
GP1.write(Command::GP1::DisplayMode(Mode::PAL()));
GPU::Screen::set_offset(FirstVisiblePixelH, FirstVisiblePixelV);
GPU::Screen::set_offset(78, 43);
#else
static constexpr uint16_t FirstVisiblePixelV = 0x88;
GP1.write(Command::GP1::DisplayMode(Mode::NTSC()));
GPU::Screen::set_offset(FirstVisiblePixelH, FirstVisiblePixelV);
GPU::Screen::set_offset(78, 45);
#endif
}
}