client almost builds

This commit is contained in:
d1str4ught
2025-08-19 00:20:40 +02:00
parent 4be475f111
commit be56f3f31a
1090 changed files with 126610 additions and 14032 deletions

View File

@@ -1976,10 +1976,10 @@ namespace UI
void CDragButton::OnChangePosition()
{
m_x = max(m_x, m_restrictArea.left);
m_y = max(m_y, m_restrictArea.top);
m_x = min(m_x, max(0, m_restrictArea.right - m_lWidth));
m_y = min(m_y, max(0, m_restrictArea.bottom - m_lHeight));
m_x = std::max(m_x, m_restrictArea.left);
m_y = std::max(m_y, m_restrictArea.top);
m_x = std::min(m_x, std::max(0l, m_restrictArea.right - m_lWidth));
m_y = std::min(m_y, std::max(0l, m_restrictArea.bottom - m_lHeight));
m_rect.left = m_x;
m_rect.top = m_y;