mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
d751ce56cb
commit
d6c915e6a6
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue