Mercurial > hg > openttd
diff src/network/network_gui.cpp @ 13344:04b02b2cfa2b draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 24 Oct 2009 14:53:55 +0000 |
parents | fe0462278733 |
children | 4f4c452950cc |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -712,7 +712,7 @@ 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);