fix warnings, simplify cmd_target

This commit is contained in:
idea4good
2019-12-17 10:45:15 +08:00
parent 46ba6afa70
commit 30e55c5267
21 changed files with 503 additions and 635 deletions

View File

@@ -53,7 +53,7 @@ int c_rect::IsEmpty() const
return m_top == m_bottom || m_left == m_right;
}
int c_rect::PtInRect(int x, int y) const
bool c_rect::PtInRect(int x, int y) const
{
return x >= m_left && x <= m_right && y >= m_top && y <= m_bottom;
}