tr1/output: improve scissor precision

Resolves #2713.
This commit is contained in:
Marcin Kurczewski 2025-04-08 16:36:04 +02:00
parent 2fb3824b3b
commit 989ba0ac6d

View file

@ -22,8 +22,8 @@ void Viewport_Init(int32_t x, int32_t y, int32_t width, int32_t height)
{ {
m_MinX = x; m_MinX = x;
m_MinY = y; m_MinY = y;
m_MaxX = x + width - 1; m_MaxX = x + width;
m_MaxY = y + height - 1; m_MaxY = y + height;
m_CenterX = (m_MinX + m_MaxX) / 2; m_CenterX = (m_MinX + m_MaxX) / 2;
m_CenterY = (m_MinY + m_MaxY) / 2; m_CenterY = (m_MinY + m_MaxY) / 2;
m_Width = width; m_Width = width;