(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.

This commit is contained in:
alberth
2009-07-12 12:19:41 +00:00
parent aac49ba01c
commit 95ac767add
5 changed files with 115 additions and 40 deletions

View File

@@ -1337,6 +1337,8 @@ void InitWindowSystem()
_focused_window = NULL;
_mouseover_last_w = NULL;
_scrolling_viewport = 0;
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
}
/**
@@ -2546,8 +2548,9 @@ void HideVitalWindows()
/** Re-initialize all windows. */
void ReInitAllWindows()
{
Window *w;
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
Window *w;
FOR_ALL_WINDOWS_FROM_BACK(w) {
w->ReInit();
}