From b276c3978e151e0738536932273a0c3fae00a64f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 26 Jul 2007 08:04:03 +0000 Subject: Optimised previous change to avoid extra redraws when modification does not affect visible area. --- include/Platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/Platform.h') 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); + } }; /** -- cgit v1.2.3