Refactor bitmap palette management across various components to streamline palette setting and improve error handling; remove unnecessary status checks and enhance consistency in palette application methods.

This commit is contained in:
scawful
2025-04-17 21:49:47 -04:00
parent eeab477e72
commit 44e13cf4bb
17 changed files with 253 additions and 316 deletions

View File

@@ -186,8 +186,8 @@ void Canvas::DrawContextMenu() {
refresh_graphics_, *palette);
if (refresh_graphics_) {
auto status = bitmap_->SetPaletteWithTransparent(
*palette, edit_palette_sub_index_);
bitmap_->SetPaletteWithTransparent(*palette,
edit_palette_sub_index_);
Renderer::GetInstance().UpdateBitmap(bitmap_);
refresh_graphics_ = false;
}