From 2ccbd2a6f5d0e3b9000122fe1845482241334f41 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Dec 2011 18:13:29 +0000 Subject: (svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure --- src/gfx_type.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gfx_type.h') diff --git a/src/gfx_type.h b/src/gfx_type.h index c31c61e70..466612755 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -266,4 +266,11 @@ enum SpriteType { /** The number of milliseconds per game tick. */ static const uint MILLISECONDS_PER_TICK = 30; +/** Information about the currently used palette. */ +struct Palette { + Colour palette[256]; ///< Current palette. Entry 0 has to be always fully transparent! + int first_dirty; ///< The first dirty element. + int count_dirty; ///< The number of dirty elements. +}; + #endif /* GFX_TYPE_H */ -- cgit v1.2.3-54-g00ecf