From 1c8e326624cb75608775c015a729226dada6cd43 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 14 Sep 2019 23:50:34 +1000 Subject: [PATCH] GPU: Fix off-by-one in rectangle rendering --- src/pse/gpu_hw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pse/gpu_hw.cpp b/src/pse/gpu_hw.cpp index a7c158672..d0b2df204 100644 --- a/src/pse/gpu_hw.cpp +++ b/src/pse/gpu_hw.cpp @@ -77,8 +77,8 @@ void GPU_HW::LoadVertices(RenderCommand rc, u32 num_vertices) } // TODO: This should repeat the texcoords instead of stretching - const s32 pos_right = pos_left + (rectangle_width - 1); - const s32 pos_bottom = pos_top + (rectangle_height - 1); + const s32 pos_right = pos_left + rectangle_width; + const s32 pos_bottom = pos_top + rectangle_height; const u8 tex_right = static_cast(tex_left + (rectangle_width - 1)); const u8 tex_bottom = static_cast(tex_top + (rectangle_height - 1));