summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video/cocoa_v.mm2
-rw-r--r--src/video/sdl_v.cpp4
-rw-r--r--src/video/win32_v.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index eb0b5919b..f34525bc6 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -206,6 +206,8 @@ static uint32 GetTick()
static void QZ_CheckPaletteAnim()
{
if (_pal_count_dirty != 0) {
+ Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
+
switch (blitter->UsePaletteAnimation()) {
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
QZ_UpdatePalette(_pal_first_dirty, _pal_count_dirty);
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index 087a3464c..e42226c3b 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -57,9 +57,9 @@ static void InitPalette()
static void CheckPaletteAnim()
{
- Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
-
if (_pal_count_dirty != 0) {
+ Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
+
switch (blitter->UsePaletteAnimation()) {
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
UpdatePalette(_pal_first_dirty, _pal_count_dirty);
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 79517843f..cf7afea03 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -232,6 +232,8 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
old_palette = SelectPalette(dc, _wnd.gdi_palette, FALSE);
if (_pal_count_dirty != 0) {
+ Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
+
switch (blitter->UsePaletteAnimation()) {
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
UpdatePalette(_pal_first_dirty, _pal_count_dirty);