Tech ENABLE_GLBEGIN_GLEND_REMOVAL - A few fixes in layers editing profile rendering
This commit is contained in:
parent
5db3c66cf7
commit
8c807dbcc4
5 changed files with 38 additions and 72 deletions
|
@ -35,14 +35,14 @@ public:
|
|||
Rect(float left, float top, float right, float bottom) : m_left(left) , m_top(top) , m_right(right) , m_bottom(bottom) {}
|
||||
|
||||
#if ENABLE_GLBEGIN_GLEND_REMOVAL
|
||||
bool operator == (const Rect& other) {
|
||||
bool operator == (const Rect& other) const {
|
||||
if (std::abs(m_left - other.m_left) > EPSILON) return false;
|
||||
if (std::abs(m_top - other.m_top) > EPSILON) return false;
|
||||
if (std::abs(m_right - other.m_right) > EPSILON) return false;
|
||||
if (std::abs(m_bottom - other.m_bottom) > EPSILON) return false;
|
||||
return true;
|
||||
}
|
||||
bool operator != (const Rect& other) { return !operator==(other); }
|
||||
bool operator != (const Rect& other) const { return !operator==(other); }
|
||||
#endif // ENABLE_GLBEGIN_GLEND_REMOVAL
|
||||
|
||||
float get_left() const { return m_left; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue