mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter
This commit is contained in:
@@ -261,15 +261,15 @@ static bool CreateMainSurface(uint w, uint h)
|
|||||||
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
|
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
|
||||||
blitter->PostResize();
|
blitter->PostResize();
|
||||||
|
|
||||||
|
InitPalette();
|
||||||
switch (blitter->UsePaletteAnimation()) {
|
switch (blitter->UsePaletteAnimation()) {
|
||||||
case Blitter::PALETTE_ANIMATION_NONE:
|
case Blitter::PALETTE_ANIMATION_NONE:
|
||||||
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
||||||
InitPalette();
|
|
||||||
UpdatePalette();
|
UpdatePalette();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Blitter::PALETTE_ANIMATION_BLITTER:
|
case Blitter::PALETTE_ANIMATION_BLITTER:
|
||||||
blitter->PaletteAnimate(_local_palette);
|
if (_video_driver != NULL) blitter->PaletteAnimate(_local_palette);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user