[nostalgia/core] Add support for getting screen dimensions

This commit is contained in:
2021-03-17 21:28:06 -05:00
parent 245424cfad
commit 4796c2e0cb
3 changed files with 42 additions and 1 deletions
+12
View File
@@ -101,6 +101,18 @@ ox::Error shutdownGfx(Context*) {
return OxError(0);
}
int getScreenWidth(Context*) {
return 240;
}
int getScreenHeight(Context*) {
return 160;
}
common::Point getScreenSize(Context*) {
return {240, 160};
}
[[nodiscard]] constexpr volatile uint32_t &bgCtl(int bg) noexcept {
switch (bg) {
case 0: