Changeset - r7392:a2dff6935901
[Not reviewed]
master
0 3 0
glx - 17 years ago 2007-08-03 02:21:10
glx@openttd.org
(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -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)
src/os/macosx/splash.cpp
Show inline comments
 
@@ -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);
src/video/win32_v.cpp
Show inline comments
 
@@ -149,7 +149,7 @@ static void ClientSizeChanged(int w, int
 
	if (AllocateDibSection(w, h)) {
 
		// mark all palette colors dirty
 
		_pal_first_dirty = 0;
 
		_pal_count_dirty = 255;
 
		_pal_count_dirty = 256;
 
		GameSizeChanged();
 

	
 
		// redraw screen
0 comments (0 inline, 0 general)