(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one

This commit is contained in:
glx 2007-08-03 02:21:10 +00:00
parent d751ce56cb
commit d6c915e6a6
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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