diff -r 1b984dab8cec -r 72d4c9314c72 src/gfx_type.h --- a/src/gfx_type.h Mon Jun 30 21:31:23 2008 +0000 +++ b/src/gfx_type.h Wed Jul 09 13:32:13 2008 +0000 @@ -149,7 +149,7 @@ uint8 b, g, r, a; ///< colour channels in LE order #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ - operator uint32 () { return *(uint32 *)this; } + operator uint32 () const { return *(uint32 *)this; } }; enum FontSize { @@ -216,4 +216,11 @@ IS_PALETTE_COLOR = 0x100, ///< color value is already a real palette color index, not an index of a StringColor }; +/** Define the operation GfxFillRect performs */ +enum FillRectMode { + FILLRECT_OPAQUE, ///< Fill rectangle with a single color + FILLRECT_CHECKER, ///< Draw only every second pixel, used for greying-out + FILLRECT_RECOLOR, ///< Apply a recolor sprite to the screen content +}; + #endif /* GFX_TYPE_H */