summaryrefslogtreecommitdiff
path: root/lib/nes/app/graphics/image-view.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/app/graphics/image-view.hh')
-rw-r--r--lib/nes/app/graphics/image-view.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nes/app/graphics/image-view.hh b/lib/nes/app/graphics/image-view.hh
index cde4989..10754d1 100644
--- a/lib/nes/app/graphics/image-view.hh
+++ b/lib/nes/app/graphics/image-view.hh
@@ -28,6 +28,6 @@ namespace nes::app
auto get_data() const -> image_tile const* { return data_; }
auto get_width() const -> u32 { return width_; }
auto get_height() const -> u32 { return height_; }
- auto get(u32 const x, u32 const y) const -> image_tile const& { return data_[y * height_ + x]; }
+ auto get(u32 const x, u32 const y) const -> image_tile const& { return data_[y * width_ + x]; }
};
} // namespace nes::app \ No newline at end of file