aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/erect.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-04-28 12:16:35 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-04-28 12:16:35 +0000
commitfc75d537aa0ea601c65ee453e2f5632ae33323bb (patch)
tree96cd8ce81dd7c2d98d3a79d78ed807d5a3a886f7 /lib/gdi/erect.h
parente0884bba407ed4faf8dd544595255e94e57c8cda (diff)
downloadenigma2-fc75d537aa0ea601c65ee453e2f5632ae33323bb.tar.gz
enigma2-fc75d537aa0ea601c65ee453e2f5632ae33323bb.zip
- fixed empty() - a rectangle is empty when widht OR height is zero
Diffstat (limited to 'lib/gdi/erect.h')
-rw-r--r--lib/gdi/erect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gdi/erect.h b/lib/gdi/erect.h
index 65fd8d71..d95b8c0f 100644
--- a/lib/gdi/erect.h
+++ b/lib/gdi/erect.h
@@ -143,7 +143,7 @@ inline eRect::eRect( int left, int top, int width, int height )
}
inline bool eRect::empty() const
-{ return x1 == x2 && y1 == y2; }
+{ return x1 == x2 || y1 == y2; }
inline bool eRect::valid() const
{ return x1 <= x2 && y1 <= y2; }