diff options
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h index 6e6540007..79be33f6b 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -122,6 +122,9 @@ public: } int Width() { return right - left; } int Height() { return bottom - top; } + bool Empty() { + return (Height() <= 0) || (Width() <= 0); + } }; /** |