diff options
author | truelight <truelight@openttd.org> | 2007-06-19 15:04:08 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-19 15:04:08 +0000 |
commit | cd10965a27fcca672b775928899c3e3777328b8b (patch) | |
tree | aacf68dc44607bc64afffcb18f3bcbf65d05d654 /src/blitter/8bpp_base.cpp | |
parent | b63c8b8342b03b813d7c005f48b790634995c7bf (diff) | |
download | openttd-cd10965a27fcca672b775928899c3e3777328b8b.tar.xz |
(svn r10216) -Fix: palette animation always redid all palette entries, where in fact only a few indexes were needed
-Codechange: allow blitters to handle palette animation internally or even disable it; 8bpp uses video-backend for palette animation
Diffstat (limited to 'src/blitter/8bpp_base.cpp')
-rw-r--r-- | src/blitter/8bpp_base.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/blitter/8bpp_base.cpp b/src/blitter/8bpp_base.cpp index 42da38937..6fe60ea18 100644 --- a/src/blitter/8bpp_base.cpp +++ b/src/blitter/8bpp_base.cpp @@ -182,3 +182,13 @@ int Blitter_8bppBase::BufferSize(int width, int height) { return width * height; } + +void Blitter_8bppBase::PaletteAnimate(uint start, uint count) +{ + /* Video backend takes care of the palette animation */ +} + +Blitter::PaletteAnimation Blitter_8bppBase::UsePaletteAnimation() +{ + return Blitter::PALETTE_ANIMATION_VIDEO_BACKEND; +} |