GPU: Fix off-by-one in rectangle rendering

This commit is contained in:
Connor McLaughlin 2019-09-14 23:50:34 +10:00
parent 77b15d156d
commit 1c8e326624
1 changed files with 2 additions and 2 deletions

View File

@ -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<u8>(tex_left + (rectangle_width - 1));
const u8 tex_bottom = static_cast<u8>(tex_top + (rectangle_height - 1));