Changeset - r10755:cec7b19b59cf
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2009-01-15 12:50:59
peter1138@openttd.org
(svn r15088) -Fix [FS#2536]: Resize company list in town authority window if required.
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/town_gui.cpp
Show inline comments
 
@@ -210,6 +210,14 @@ public:
 
				y += 10;
 
			}
 
		}
 

	
 
		if (y > this->widget[TWA_RATING_INFO].bottom) {
 
			/* If the company list is too big to fit, mark ourself dirty and draw again. */
 
			ResizeWindowForWidget(this, TWA_RATING_INFO, 0, y - this->widget[TWA_RATING_INFO].bottom);
 
			this->SetDirty();
 
			return;
 
		}
 

	
 
		y = this->widget[TWA_COMMAND_LIST].top + 1;
 
		int pos = this->vscroll.pos;
 

	
0 comments (0 inline, 0 general)