mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
performance improvments
This commit is contained in:
@@ -64,6 +64,7 @@ public:
|
||||
inline T width() const { return x2 - x1 + 1; }
|
||||
inline T height() const { return y2 - y1 + 1; }
|
||||
inline TSize<T> size() const { return TSize<T>(width(), height()); }
|
||||
inline void clear() { x1 = y1 = 0; x2 = y2 = -1; }
|
||||
|
||||
inline void setLeft(T pos) { x1 = pos; }
|
||||
inline void setTop(T pos) { y1 = pos; }
|
||||
|
Reference in New Issue
Block a user