Changeset - r22567:c7f225c92a0b
[Not reviewed]
master
0 2 0
frosch - 7 years ago 2017-03-11 12:52:26
frosch@openttd.org
(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.
2 files changed with 3 insertions and 14 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim.hpp
Show inline comments
 
@@ -27,7 +27,9 @@ public:
 
		anim_buf(NULL),
 
		anim_buf_width(0),
 
		anim_buf_height(0)
 
	{}
 
	{
 
		this->palette = _cur_palette;
 
	}
 

	
 
	~Blitter_32bppAnim();
 

	
src/video/sdl_v.cpp
Show inline comments
 
@@ -404,19 +404,6 @@ bool VideoDriver_SDL::CreateMainSurface(
 
	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);
0 comments (0 inline, 0 general)