summaryrefslogtreecommitdiff
path: root/src/blitter/base.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-08 19:37:33 +0000
committerrubidium <rubidium@openttd.org>2011-12-08 19:37:33 +0000
commit61625e53c96572528745b79a63ba614b74c8f301 (patch)
treef748a6f1eb557f7466346597b167607d1ae75413 /src/blitter/base.hpp
parent8630e97b4f0d078ca492944f383790979b85f8c1 (diff)
downloadopenttd-61625e53c96572528745b79a63ba614b74c8f301.tar.xz
(svn r23448) -Fix: keep a local copy of the palette in the 32bpp animated blitter so changes of the palette data during the game don't influence drawing (with SDL)
Diffstat (limited to 'src/blitter/base.hpp')
-rw-r--r--src/blitter/base.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp
index f52f414f1..0a761a156 100644
--- a/src/blitter/base.hpp
+++ b/src/blitter/base.hpp
@@ -173,11 +173,10 @@ public:
/**
* Called when the 8bpp palette is changed; you should redraw all pixels on the screen that
- * are equal to the 8bpp palette indexes 'start' to 'start + count'.
- * @param start The start index in the 8bpp palette.
- * @param count The amount of indexes that are (possible) changed.
+ * are equal to the 8bpp palette indexes 'first_dirty' to 'first_dirty + count_dirty'.
+ * @param palette The new palette.
*/
- virtual void PaletteAnimate(uint start, uint count) = 0;
+ virtual void PaletteAnimate(const Palette &palette) = 0;
/**
* Check if the blitter uses palette animation at all.