summaryrefslogtreecommitdiff
path: root/lib/nes/app/graphics/renderer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/app/graphics/renderer.cc')
-rw-r--r--lib/nes/app/graphics/renderer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nes/app/graphics/renderer.cc b/lib/nes/app/graphics/renderer.cc
index c53ea12..8d1a168 100644
--- a/lib/nes/app/graphics/renderer.cc
+++ b/lib/nes/app/graphics/renderer.cc
@@ -68,7 +68,7 @@ namespace nes::app
auto const resolved = resolve_color(c);
auto const x_stop = std::min(x + width, renderer::width);
- auto const y_stop = std::min(y + width, renderer::height);
+ auto const y_stop = std::min(y + height, renderer::height);
for (auto y_px = unsigned{ y * 8 }; y_px < y_stop * 8; ++y_px)
{
for (auto x_px = unsigned{ x * 8 }; x_px < x_stop * 8; ++x_px)