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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user