aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) |