aboutsummaryrefslogtreecommitdiff
path: root/graphics/pixelformat.h
diff options
context:
space:
mode:
authorJohannes Schickel2009-01-22 15:53:05 +0000
committerJohannes Schickel2009-01-22 15:53:05 +0000
commitadf15c100765608a054143fdf0e1af98c077bd51 (patch)
tree2bd5081c7eb92475663abe7551763b74a6d980ba /graphics/pixelformat.h
parent5b8105afb3a345cfd66efa795726329f509572c3 (diff)
downloadscummvm-rg350-adf15c100765608a054143fdf0e1af98c077bd51.tar.gz
scummvm-rg350-adf15c100765608a054143fdf0e1af98c077bd51.tar.bz2
scummvm-rg350-adf15c100765608a054143fdf0e1af98c077bd51.zip
Added an '!=' operator to PixelFormat.
svn-id: r35998
Diffstat (limited to 'graphics/pixelformat.h')
-rw-r--r--graphics/pixelformat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h
index bfec28fabd..733499839b 100644
--- a/graphics/pixelformat.h
+++ b/graphics/pixelformat.h
@@ -54,6 +54,10 @@ struct PixelFormat {
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) |