Codechange: Use enum class for PaletteAnimation.
This commit is contained in:
committed by
Peter Nelson
parent
161b02efda
commit
1e14fd6a0d
@@ -101,16 +101,16 @@ void VideoDriver_SDL_Default::Paint()
|
||||
Blitter *blitter = BlitterFactory::GetCurrentBlitter();
|
||||
|
||||
switch (blitter->UsePaletteAnimation()) {
|
||||
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
||||
case Blitter::PaletteAnimation::VideoBackend:
|
||||
this->UpdatePalette();
|
||||
break;
|
||||
|
||||
case Blitter::PALETTE_ANIMATION_BLITTER: {
|
||||
case Blitter::PaletteAnimation::Blitter: {
|
||||
blitter->PaletteAnimate(this->local_palette);
|
||||
break;
|
||||
}
|
||||
|
||||
case Blitter::PALETTE_ANIMATION_NONE:
|
||||
case Blitter::PaletteAnimation::None:
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user