Update Bitmap fns

This commit is contained in:
scawful
2023-11-18 20:05:32 -05:00
parent 82952e2e73
commit 72ef0d0536
5 changed files with 47 additions and 29 deletions

View File

@@ -5,7 +5,6 @@
#include "app/gui/canvas.h"
#include "app/rom.h"
namespace yaze {
namespace app {
namespace zelda3 {
@@ -62,7 +61,8 @@ void Inventory::Create() {
i++;
}
}
bitmap_.Create(256, 256, 128, data_);
PRINT_IF_ERROR(bitmap_.InitializeFromData(256, 256, 8, data_))
bitmap_.ApplyPalette(palette_);
rom()->RenderBitmap(&bitmap_);
}