(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
authorglx
Fri, 03 Aug 2007 02:21:10 +0000
changeset 7392 0964cfefbe64
parent 7391 8c87aec393c7
child 7393 f3d27c82fec3
(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
src/os/macosx/splash.cpp
src/video/win32_v.cpp
--- a/src/gfx.cpp	Thu Aug 02 23:40:19 2007 +0000
+++ b/src/gfx.cpp	Fri Aug 03 02:21:10 2007 +0000
@@ -662,7 +662,7 @@
 
 	DoPaletteAnimations();
 	_pal_first_dirty = 0;
-	_pal_count_dirty = 255;
+	_pal_count_dirty = 256;
 }
 
 #define EXTR(p, q) (((uint16)(_palette_animation_counter * (p)) * (q)) >> 16)
--- a/src/os/macosx/splash.cpp	Thu Aug 02 23:40:19 2007 +0000
+++ b/src/os/macosx/splash.cpp	Fri Aug 03 02:21:10 2007 +0000
@@ -128,7 +128,7 @@
 	_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);
--- a/src/video/win32_v.cpp	Thu Aug 02 23:40:19 2007 +0000
+++ b/src/video/win32_v.cpp	Fri Aug 03 02:21:10 2007 +0000
@@ -149,7 +149,7 @@
 	if (AllocateDibSection(w, h)) {
 		// mark all palette colors dirty
 		_pal_first_dirty = 0;
-		_pal_count_dirty = 255;
+		_pal_count_dirty = 256;
 		GameSizeChanged();
 
 		// redraw screen