summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-07 18:05:49 +0000
committerglx <glx@openttd.org>2007-12-07 18:05:49 +0000
commitc21f588a14f30fed3d683b4686975670adaf7ed5 (patch)
treed911871e265f9cc64abdaac46967f9c90de70315 /src/widget.cpp
parent98bd772119d0b603a53b31a875b5a2bc7e9108f7 (diff)
downloadopenttd-c21f588a14f30fed3d683b4686975670adaf7ed5.tar.xz
(svn r11588) -Codechange: use the new member introduced in r11551
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 4453350fc..46900d5ed 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -603,7 +603,7 @@ static void DropdownMenuWndProc(Window *w, WindowEvent *e)
Window *w2 = FindWindowById(WP(w,dropdown_d).parent_wnd_class, WP(w,dropdown_d).parent_wnd_num);
if (w2 != NULL) {
w2->RaiseWidget(WP(w,dropdown_d).parent_button);
- InvalidateWidget(w2, WP(w,dropdown_d).parent_button);
+ w2->InvalidateWidget(WP(w,dropdown_d).parent_button);
}
} break;
}
@@ -626,7 +626,7 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt
w->LowerWidget(button);
- InvalidateWidget(w, button);
+ w->InvalidateWidget(button);
for (i = 0; strings[i] != INVALID_STRING_ID; i++) {}
if (i == 0) return;