From ca0521f89fc53be22e18cb56f6d9c358555246af Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 24 Oct 2009 14:53:55 +0000 Subject: (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. --- src/network/network_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/network_gui.cpp') diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 85ee499b8..dc3fcef72 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -712,7 +712,7 @@ public: if (!StrEmpty(str)) NetworkAddServer(str); } - virtual void OnResize(Point delta) + virtual void OnResize() { this->vscroll.SetCapacity((this->widget[NGWW_MATRIX].bottom - this->widget[NGWW_MATRIX].top + 1) / this->resize.step_height); this->widget[NGWW_MATRIX].data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); -- cgit v1.2.3-54-g00ecf