From bf88e17d552d85cd18bc31757ef9d73049b327c4 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sat, 1 Feb 2025 14:21:04 +0100 Subject: implement text rendering --- lib/nes/app/graphics/image-view.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/nes/app/graphics/image-view.hh') 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 -- cgit v1.3.1