Changeset - r19109:91bf304afe2c
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2012-02-23 21:10:08
rubidium@openttd.org
(svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/video/sdl_v.cpp
Show inline comments
 
@@ -261,15 +261,15 @@ static bool CreateMainSurface(uint w, ui
 
	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
 
	blitter->PostResize();
 

	
 
	InitPalette();
 
	switch (blitter->UsePaletteAnimation()) {
 
		case Blitter::PALETTE_ANIMATION_NONE:
 
		case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
 
			InitPalette();
 
			UpdatePalette();
 
			break;
 

	
 
		case Blitter::PALETTE_ANIMATION_BLITTER:
 
			blitter->PaletteAnimate(_local_palette);
 
			if (_video_driver != NULL) blitter->PaletteAnimate(_local_palette);
 
			break;
 

	
 
		default:
0 comments (0 inline, 0 general)