[Scummvm-cvs-logs] SF.net SVN: scummvm:[35998] scummvm/trunk/graphics/pixelformat.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Jan 22 16:53:06 CET 2009
Revision: 35998
http://scummvm.svn.sourceforge.net/scummvm/?rev=35998&view=rev
Author: lordhoto
Date: 2009-01-22 15:53:05 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
Added an '!=' operator to PixelFormat.
Modified Paths:
--------------
scummvm/trunk/graphics/pixelformat.h
Modified: scummvm/trunk/graphics/pixelformat.h
===================================================================
--- scummvm/trunk/graphics/pixelformat.h 2009-01-22 13:04:29 UTC (rev 35997)
+++ scummvm/trunk/graphics/pixelformat.h 2009-01-22 15:53:05 UTC (rev 35998)
@@ -54,6 +54,10 @@
return 0 == memcmp(this, &fmt, sizeof(PixelFormat));
}
+ inline bool operator!=(const PixelFormat &fmt) const {
+ return !(*this == fmt);
+ }
+
inline uint32 RGBToColor(uint8 r, uint8 g, uint8 b) const {
return
((0xFF >> aLoss) << aShift) |
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