remove old graphics bin from ow editor

This commit is contained in:
scawful
2024-05-30 18:25:14 -04:00
parent d9261464eb
commit eb51c43d7d
3 changed files with 0 additions and 7 deletions

View File

@@ -71,8 +71,6 @@ absl::Status OverworldEditor::Update() {
gfx_group_editor_.InitBlockset(&tile16_blockset_bmp_);
RETURN_IF_ERROR(LoadEntranceTileTypes(*rom()));
all_gfx_loaded_ = true;
} else if (!rom()->is_loaded() && all_gfx_loaded_) {
Shutdown();
}
RETURN_IF_ERROR(UpdateFullscreenCanvas());
@@ -1593,8 +1591,6 @@ void OverworldEditor::DrawOverworldSprites() {
// ----------------------------------------------------------------------------
absl::Status OverworldEditor::LoadGraphics() {
graphics_bin_ = rom()->graphics_bin();
// Load the Link to the Past overworld.
RETURN_IF_ERROR(overworld_.Load(*rom()))
palette_ = overworld_.AreaPalette();

View File

@@ -260,7 +260,6 @@ class OverworldEditor : public Editor,
gfx::Bitmap all_gfx_bmp;
gfx::BitmapTable maps_bmp_;
gfx::BitmapTable graphics_bin_;
gfx::BitmapTable current_graphics_set_;
gfx::BitmapTable sprite_previews_;

View File

@@ -281,8 +281,6 @@ class BitmapManager {
if (it != bitmap_cache_.end()) {
return it->second;
}
std::cout << absl::StrCat("Bitmap with id ", id, " not found.")
<< std::endl;
return bitmap_cache_.begin()->second;
}
std::shared_ptr<gfx::Bitmap> const &shared_bitmap(int id) {