Changeset - r827:9706d10c1c4c
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2004-12-29 15:32:10
truelight@openttd.org
(svn r1298) -Fix: [ 1092661 ] On create, the scrollbar of the server-list was not updated
1 file changed with 14 insertions and 12 deletions:
0 comments (0 inline, 0 general)
network_gui.c
Show inline comments
 
@@ -413,6 +413,19 @@ static const WindowDesc _network_game_wi
 

	
 
static FiosItem *selected_map = NULL; // to highlight slected map
 

	
 
// called when a new server is found on the network
 
void UpdateNetworkGameWindow(bool unselect)
 
{
 
	Window *w;
 
	w = FindWindowById(WC_NETWORK_WINDOW, 0);
 
	if (w != NULL) {
 
		if (unselect)
 
			_selected_item = NULL;
 
		w->vscroll.count = _network_game_count;
 
		SetWindowDirty(w);
 
	}
 
}
 

	
 
void ShowNetworkGameWindow()
 
{
 
	uint i;
 
@@ -437,19 +450,8 @@ void ShowNetworkGameWindow()
 
	WP(w,querystr_d).maxlen = MAX_QUERYSTR_LEN;
 
	WP(w,querystr_d).maxwidth = 120;
 
	WP(w,querystr_d).buf = _edit_str_buf;
 
}
 

	
 
// called when a new server is found on the network
 
void UpdateNetworkGameWindow(bool unselect)
 
{
 
	Window *w;
 
	w = FindWindowById(WC_NETWORK_WINDOW, 0);
 
	if (w != NULL) {
 
		if (unselect)
 
			_selected_item = NULL;
 
		w->vscroll.count = _network_game_count;
 
		SetWindowDirty(w);
 
	}
 
	UpdateNetworkGameWindow(true);
 
}
 

	
 
static const StringID _players_dropdown[] = {
0 comments (0 inline, 0 general)