diff options
| author | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-22 13:11:15 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-22 13:11:15 +0200 |
| commit | 86fd0ba3d6e00cc7dcf81ed2f98df9556a4482b8 (patch) | |
| tree | 7afc905f3478de0f584ff60d0335ce5a5da7d303 /lib/gdi | |
| parent | 1f3e4e59174d695fd9cfe2fb16caf883e8e9477f (diff) | |
| download | enigma2-86fd0ba3d6e00cc7dcf81ed2f98df9556a4482b8.tar.gz enigma2-86fd0ba3d6e00cc7dcf81ed2f98df9556a4482b8.zip | |
'invalid' eRects (produced from operator& on non-overlapping-rects) are in fact empty as well. This simplifies some clipping checks which were done manually before.
Diffstat (limited to 'lib/gdi')
| -rw-r--r-- | lib/gdi/erect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gdi/erect.h b/lib/gdi/erect.h index 83981403..34713ab4 100644 --- a/lib/gdi/erect.h +++ b/lib/gdi/erect.h @@ -151,7 +151,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; } |
