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

@@ -111,7 +111,7 @@ void BitmapCanvasPipeline(gui::Canvas& canvas, const gfx::Bitmap& bitmap,
void BuildAndRenderBitmapPipeline(int width, int height, int depth, Bytes data,
ROM& z3_rom, gfx::Bitmap& bitmap,
gfx::SNESPalette& palette) {
bitmap.Create(width, height, depth, data);
PRINT_IF_ERROR(bitmap.InitializeFromData(width, height, depth, data));
bitmap.ApplyPalette(palette);
z3_rom.RenderBitmap(&bitmap);
}