[nostalgia/core/gba] Update NostalgiaGraphic format

This commit is contained in:
Gary Talent 2020-03-11 19:02:28 -05:00
parent 5ac257de48
commit 317cfabc72

View File

@ -51,7 +51,10 @@ ox::Error modelRead(T *io, GbaTileMapTarget *t) {
io->setTypeInfo("nostalgia::core::NostalgiaGraphic", NostalgiaGraphic::Fields); io->setTypeInfo("nostalgia::core::NostalgiaGraphic", NostalgiaGraphic::Fields);
uint8_t bpp; uint8_t bpp;
int dummy;
oxReturnError(io->field("bpp", &bpp)); oxReturnError(io->field("bpp", &bpp));
oxReturnError(io->field("rows", &dummy));
oxReturnError(io->field("columns", &dummy));
constexpr auto Bpp8 = 1 << 7; constexpr auto Bpp8 = 1 << 7;
*t->bgCtl = (28 << 8) | 1; *t->bgCtl = (28 << 8) | 1;
if (bpp == 4) { if (bpp == 4) {