summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-03-29 09:49:11 +0000
committeralberth <alberth@openttd.org>2009-03-29 09:49:11 +0000
commit9d2738b9c4c917fef1435276f7963c05fad817de (patch)
tree46a8610446402593770a93a3a51e586061127c7b /src/ai
parent7a9a5cd139e924b966599e459db2f1fbdbcdf286 (diff)
downloadopenttd-9d2738b9c4c917fef1435276f7963c05fad817de.tar.xz
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index ac47692c1..ae98e6cb7 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -167,7 +167,7 @@ struct AIListWindow : public Window {
}
}
- virtual void OnResize(Point new_size, Point delta)
+ virtual void OnResize(Point delta)
{
if (delta.x != 0) {
ResizeButtons(this, AIL_WIDGET_ACCEPT, AIL_WIDGET_CANCEL);
@@ -365,7 +365,7 @@ struct AISettingsWindow : public Window {
this->SetDirty();
}
- virtual void OnResize(Point new_size, Point delta)
+ virtual void OnResize(Point delta)
{
if (delta.x != 0) {
ResizeButtons(this, AIS_WIDGET_ACCEPT, AIS_WIDGET_RESET);
@@ -588,7 +588,7 @@ struct AIConfigWindow : public Window {
}
}
- virtual void OnResize(Point new_size, Point delta)
+ virtual void OnResize(Point delta)
{
this->vscroll.cap += delta.y / 14;
this->widget[AIC_WIDGET_LIST].data = (this->vscroll.cap << 8) + 1;
@@ -777,7 +777,7 @@ struct AIDebugWindow : public Window {
if (data == -1 || ai_debug_company == data) this->SetDirty();
}
- virtual void OnResize(Point new_size, Point delta)
+ virtual void OnResize(Point delta)
{
this->vscroll.cap += delta.y / (int)this->resize.step_height;
}