mirror of https://github.com/OpenTTD/OpenTTD
(svn r22227) -Fix [FS#4546-ish]: Call sheduled OnInvalidate()-calls before doing OnHundrethTick()-calls.
parent
9cf92e2bd2
commit
b997ebb942
|
@ -2403,6 +2403,11 @@ void InputLoop()
|
||||||
void UpdateWindows()
|
void UpdateWindows()
|
||||||
{
|
{
|
||||||
Window *w;
|
Window *w;
|
||||||
|
|
||||||
|
FOR_ALL_WINDOWS_FROM_FRONT(w) {
|
||||||
|
w->ProcessScheduledInvalidations();
|
||||||
|
}
|
||||||
|
|
||||||
static int we4_timer = 0;
|
static int we4_timer = 0;
|
||||||
int t = we4_timer + 1;
|
int t = we4_timer + 1;
|
||||||
|
|
||||||
|
@ -2420,7 +2425,6 @@ void UpdateWindows()
|
||||||
|
|
||||||
if (!(w->flags4 & WF_WHITE_BORDER_MASK)) w->SetDirty();
|
if (!(w->flags4 & WF_WHITE_BORDER_MASK)) w->SetDirty();
|
||||||
}
|
}
|
||||||
w->ProcessScheduledInvalidations();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawDirtyBlocks();
|
DrawDirtyBlocks();
|
||||||
|
|
Loading…
Reference in New Issue