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
for (int i = 0; i < 3; i++)
for (auto const &sprite : overworld_.sprites(i)) {
int width = sprite.Width();
int height = sprite.Height();
int width = sprite.width();
int height = sprite.height();
int depth = 0x40;
auto spr_gfx = sprite.PreviewGraphics();
sprite_previews_[sprite.id()].Create(width, height, depth, spr_gfx);