Fix gfx buffer bug in ROM::LoadAllGraphicsData
This commit is contained in:
@@ -62,7 +62,7 @@ void Inventory::Create() {
|
||||
}
|
||||
}
|
||||
|
||||
PRINT_IF_ERROR(bitmap_.InitializeFromData(256, 256, 8, data_))
|
||||
bitmap_.Create(256, 256, 8, data_);
|
||||
bitmap_.ApplyPalette(palette_);
|
||||
rom()->RenderBitmap(&bitmap_);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ void TitleScreen::BuildTileset() {
|
||||
staticgfx[15] = 112;
|
||||
|
||||
// Loaded gfx for the current screen (empty at this point)
|
||||
uchar* currentmapgfx8Data = tiles8Bitmap.data();
|
||||
uchar* currentmapgfx8Data = tiles8Bitmap.mutable_data().data();
|
||||
|
||||
// All gfx of the game pack of 2048 bytes (4bpp)
|
||||
uchar* allgfxData = nullptr; // rom_.GetMasterGraphicsBin();
|
||||
|
||||
Reference in New Issue
Block a user