Configurate Screen
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user