From adf15c100765608a054143fdf0e1af98c077bd51 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 22 Jan 2009 15:53:05 +0000 Subject: Added an '!=' operator to PixelFormat. svn-id: r35998 --- graphics/pixelformat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics') 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) | -- cgit v1.2.3