Configurate Screen

This commit is contained in:
Jaby
2022-10-03 15:38:54 +02:00
parent 9e69aec9bd
commit 83c00992aa
5 changed files with 83 additions and 21 deletions

View File

@@ -12,6 +12,14 @@
namespace GPU {
namespace Display {
#ifdef JABYENGINE_PAL
static constexpr size_t Width = 320;
static constexpr size_t Height = 256;
#else
static constexpr size_t Width = 320;
static constexpr size_t Height = 240;
#endif
static void enable() {
GP1.write(Command::GP1::SetDisplayState(DisplayState::On));
}
@@ -19,6 +27,8 @@ namespace GPU {
static void disable() {
GP1.write(Command::GP1::SetDisplayState(DisplayState::Off));
}
void set_offset(uint16_t x, uint16_t y);
}
}