Refactor sprite dimension retrieval to use lowercase methods for consistency
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user