[Scummvm-cvs-logs] SF.net SVN: scummvm:[33279] scummvm/trunk/common/rect.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Jul 25 11:16:34 CEST 2008
Revision: 33279
http://scummvm.svn.sourceforge.net/scummvm/?rev=33279&view=rev
Author: fingolfin
Date: 2008-07-25 09:16:33 +0000 (Fri, 25 Jul 2008)
Log Message:
-----------
Added Common::Rect::isEmpty() method
Modified Paths:
--------------
scummvm/trunk/common/rect.h
Modified: scummvm/trunk/common/rect.h
===================================================================
--- scummvm/trunk/common/rect.h 2008-07-25 09:15:32 UTC (rev 33278)
+++ scummvm/trunk/common/rect.h 2008-07-25 09:16:33 UTC (rev 33279)
@@ -177,6 +177,10 @@
clip(Rect(0, 0, maxw, maxh));
}
+ bool isEmpty() const {
+ return (left >= right || top >= bottom);
+ }
+
bool isValidRect() const {
return (left <= right && top <= bottom);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list