aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-07-26 08:04:03 +0000
committernyamatongwe <devnull@localhost>2007-07-26 08:04:03 +0000
commit8e7a29f2fd09477eb41e2d5bd33d11ef04740c32 (patch)
tree45eef4bb6dfafb520f5996624dde9bfc3f15d6e2 /include/Platform.h
parentd9bfb39e4ed8fa194b0d9f1f675cf24fb09bb958 (diff)
downloadscintilla-mirror-8e7a29f2fd09477eb41e2d5bd33d11ef04740c32.tar.gz
Optimised previous change to avoid extra redraws when modification does not
affect visible area.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h3
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);
+ }
};
/**