mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Update] Upstream
This commit is contained in:
@@ -9,6 +9,9 @@ public:
|
||||
m_width(width), m_height(height) {}
|
||||
constexpr KDCoordinate width() const { return m_width; }
|
||||
constexpr KDCoordinate height() const { return m_height; }
|
||||
bool operator==(const KDSize &other) const {
|
||||
return m_width == other.width() && m_height == other.height();
|
||||
}
|
||||
private:
|
||||
KDCoordinate m_width;
|
||||
KDCoordinate m_height;
|
||||
|
||||
@@ -174,5 +174,5 @@ KDRect KDRect::movedTo(KDPoint p) const {
|
||||
}
|
||||
|
||||
bool KDRect::isEmpty() const {
|
||||
return (width() == 0 || height() == 0);
|
||||
return (width() == 0 || height() == 0); //TODO <= 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user