From 61625e53c96572528745b79a63ba614b74c8f301 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Dec 2011 19:37:33 +0000 Subject: (svn r23448) -Fix: keep a local copy of the palette in the 32bpp animated blitter so changes of the palette data during the game don't influence drawing (with SDL) --- src/video/cocoa/event.mm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/video/cocoa/event.mm') diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm index 3a9a62595..e9753fdc7 100644 --- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -99,7 +99,7 @@ static void QZ_CheckPaletteAnim() break; case Blitter::PALETTE_ANIMATION_BLITTER: - blitter->PaletteAnimate(_cur_palette.first_dirty, _cur_palette.count_dirty); + blitter->PaletteAnimate(_cur_palette); break; case Blitter::PALETTE_ANIMATION_NONE: @@ -555,7 +555,6 @@ void QZ_GameLoop() uint32 cur_ticks = GetTick(); uint32 last_cur_ticks = cur_ticks; uint32 next_tick = cur_ticks + MILLISECONDS_PER_TICK; - uint32 pal_tick = 0; #ifdef _DEBUG uint32 et0 = GetTick(); @@ -615,10 +614,7 @@ void QZ_GameLoop() GameLoop(); UpdateWindows(); - if (++pal_tick > 4) { - QZ_CheckPaletteAnim(); - pal_tick = 1; - } + QZ_CheckPaletteAnim(); _cocoa_subdriver->Draw(); } else { #ifdef _DEBUG -- cgit v1.2.3-70-g09d2