From d6c915e6a631b76bcb1459f2509a142298a2daf8 Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 3 Aug 2007 02:21:10 +0000 Subject: [PATCH] (svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one --- src/gfx.cpp | 2 +- src/os/macosx/splash.cpp | 2 +- src/video/win32_v.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index f20f349233..faf011bae3 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -662,7 +662,7 @@ void GfxInitPalettes() DoPaletteAnimations(); _pal_first_dirty = 0; - _pal_count_dirty = 255; + _pal_count_dirty = 256; } #define EXTR(p, q) (((uint16)(_palette_animation_counter * (p)) * (q)) >> 16) diff --git a/src/os/macosx/splash.cpp b/src/os/macosx/splash.cpp index 927f8d5eae..30eed880d2 100644 --- a/src/os/macosx/splash.cpp +++ b/src/os/macosx/splash.cpp @@ -128,7 +128,7 @@ void DisplaySplashImage() _cur_palette[0xff].b = 0; _pal_first_dirty = 0; - _pal_count_dirty = 255; + _pal_count_dirty = 256; png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); fclose(f); diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 0164fe5957..46c6cc8510 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -149,7 +149,7 @@ static void ClientSizeChanged(int w, int h) if (AllocateDibSection(w, h)) { // mark all palette colors dirty _pal_first_dirty = 0; - _pal_count_dirty = 255; + _pal_count_dirty = 256; GameSizeChanged(); // redraw screen