[nostalgia/core/gba] Update NostalgiaGraphic format
This commit is contained in:
parent
5ac257de48
commit
317cfabc72
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user