diff options
author | rubidium <rubidium@openttd.org> | 2009-09-30 21:00:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-30 21:00:35 +0000 |
commit | 00324050930287e25d9a616f12cdf1421c3445e7 (patch) | |
tree | 9b463f5f1c52a367a2b364754d8697ff149145eb /src/window.cpp | |
parent | 2fa312aab9f7bcad6689f9da9dc92b0b096b0247 (diff) | |
download | openttd-00324050930287e25d9a616f12cdf1421c3445e7.tar.xz |
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/window.cpp b/src/window.cpp index 69e7e41ed..99a0f9c85 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2477,17 +2477,6 @@ void SetWindowClassesDirty(WindowClass cls) } /** - * Mark window data as invalid (in need of re-computing) - * @param w Window with invalid data - * @param data The data to invalidate with - */ -void InvalidateThisWindowData(Window *w, int data) -{ - w->OnInvalidateData(data); - w->SetDirty(); -} - -/** * Mark window data of the window of a given class and specific window number as invalid (in need of re-computing) * @param cls Window class * @param number Window number within the class @@ -2497,7 +2486,7 @@ void InvalidateWindowData(WindowClass cls, WindowNumber number, int data) { Window *w; FOR_ALL_WINDOWS_FROM_BACK(w) { - if (w->window_class == cls && w->window_number == number) InvalidateThisWindowData(w, data); + if (w->window_class == cls && w->window_number == number) w->InvalidateData(data); } } @@ -2511,7 +2500,7 @@ void InvalidateWindowClassesData(WindowClass cls, int data) Window *w; FOR_ALL_WINDOWS_FROM_BACK(w) { - if (w->window_class == cls) InvalidateThisWindowData(w, data); + if (w->window_class == cls) w->InvalidateData(data); } } |