diff options
author | frosch <frosch@openttd.org> | 2017-03-11 12:52:26 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-03-11 12:52:26 +0000 |
commit | d5f82bf55b8a0e4c522066118a6e0d980651ae92 (patch) | |
tree | aaa3d0a14182fb3824d8cc41cbca4ae6d1589d32 /src/video/sdl_v.cpp | |
parent | 9184b32978a1bb2e7305e2e0e16f7496095ab262 (diff) | |
download | openttd-d5f82bf55b8a0e4c522066118a6e0d980651ae92.tar.xz |
(svn r27774) -Fix [FS#5889]: Enabling palette animation for 32bpp blitters while paused skipped initialisation of the palette and resulted in black windows.
-Revert (r23978): No SDL-specific fix required anymore. The new fix applies to all backends.
Diffstat (limited to 'src/video/sdl_v.cpp')
-rw-r--r-- | src/video/sdl_v.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 4ee96db77..4bb44c9d7 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -404,19 +404,6 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h) blitter->PostResize(); InitPalette(); - switch (blitter->UsePaletteAnimation()) { - case Blitter::PALETTE_ANIMATION_NONE: - case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND: - UpdatePalette(); - break; - - case Blitter::PALETTE_ANIMATION_BLITTER: - if (VideoDriver::GetInstance() != NULL) blitter->PaletteAnimate(_local_palette); - break; - - default: - NOT_REACHED(); - } seprintf(caption, lastof(caption), "OpenTTD %s", _openttd_revision); SDL_CALL SDL_WM_SetCaption(caption, caption); |