Refactor sprite dimension retrieval to use lowercase methods for consistency

This commit is contained in:
scawful
2024-11-08 00:14:11 -05:00
parent 94a05e6ea7
commit 6c0bc9877e

View File

@@ -1106,8 +1106,8 @@ absl::Status OverworldEditor::LoadSpriteGraphics() {
// Render the sprites for each Overworld map // Render the sprites for each Overworld map
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
for (auto const &sprite : overworld_.sprites(i)) { for (auto const &sprite : overworld_.sprites(i)) {
int width = sprite.Width(); int width = sprite.width();
int height = sprite.Height(); int height = sprite.height();
int depth = 0x40; int depth = 0x40;
auto spr_gfx = sprite.PreviewGraphics(); auto spr_gfx = sprite.PreviewGraphics();
sprite_previews_[sprite.id()].Create(width, height, depth, spr_gfx); sprite_previews_[sprite.id()].Create(width, height, depth, spr_gfx);