From: Felix Domke Date: Mon, 22 Jun 2009 11:11:15 +0000 (+0200) Subject: 'invalid' eRects (produced from operator& on non-overlapping-rects) are in fact empty... X-Git-Tag: 2.6.0~234 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/86fd0ba3d6e00cc7dcf81ed2f98df9556a4482b8 '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. --- 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; }