diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 14:21:04 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 14:29:12 +0100 |
| commit | bf88e17d552d85cd18bc31757ef9d73049b327c4 (patch) | |
| tree | bf46e60bef0fc2247c44cf2291fbfa38765a7b98 /lib/nes/app/graphics/image-view.hh | |
| parent | cbde52a60605a4fe853d3a3562b2a059e2143e6e (diff) | |
implement text rendering
Diffstat (limited to 'lib/nes/app/graphics/image-view.hh')
| -rw-r--r-- | lib/nes/app/graphics/image-view.hh | 2 |
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 |
