src/network/network_chat_gui.cpp
changeset 10426 4a77f7049b5e
parent 10310 ca2eb5811a07
equal deleted inserted replaced
10425:4a880a6ab2ac 10426:4a77f7049b5e
   275 		this->dest    = dest;
   275 		this->dest    = dest;
   276 		this->afilter = CS_ALPHANUMERAL;
   276 		this->afilter = CS_ALPHANUMERAL;
   277 		InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 0);
   277 		InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 0);
   278 
   278 
   279 		InvalidateWindowData(WC_NEWS_WINDOW, 0, this->height);
   279 		InvalidateWindowData(WC_NEWS_WINDOW, 0, this->height);
   280 		SetBit(_no_scroll, SCROLL_CHAT); // do not scroll the game with the arrow-keys
       
   281 
   280 
   282 		_chat_tab_completion_active = false;
   281 		_chat_tab_completion_active = false;
   283 
   282 
   284 		this->FindWindowPlacementAndResize(desc);
   283 		this->FindWindowPlacementAndResize(desc);
   285 	}
   284 	}
   286 
   285 
   287 	~NetworkChatWindow ()
   286 	~NetworkChatWindow ()
   288 	{
   287 	{
   289 		InvalidateWindowData(WC_NEWS_WINDOW, 0, 0);
   288 		InvalidateWindowData(WC_NEWS_WINDOW, 0, 0);
   290 		ClrBit(_no_scroll, SCROLL_CHAT);
       
   291 	}
   289 	}
   292 
   290 
   293 	/**
   291 	/**
   294 	 * Find the next item of the list of things that can be auto-completed.
   292 	 * Find the next item of the list of things that can be auto-completed.
   295 	 * @param item The current indexed item to return. This function can, and most
   293 	 * @param item The current indexed item to return. This function can, and most