mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
parent
2fb3824b3b
commit
989ba0ac6d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue