Changeset - r10934:3135c6d12669
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-01-25 22:16:08
rubidium@openttd.org
(svn r15273) -Fix: OSK of the chat did not update the caret graphics
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -1004,7 +1004,15 @@ HandleEditBoxResult QueryString::HandleE
 

	
 
void QueryString::HandleEditBox(Window *w, int wid)
 
{
 
	if (HandleCaret(&this->text)) w->InvalidateWidget(wid);
 
	if (HandleCaret(&this->text)) {
 
		w->InvalidateWidget(wid);
 
		/* When we're not the OSK, notify 'our' OSK to redraw the widget,
 
		 * so the caret changes appropriately. */
 
		if (w->window_class != WC_OSK) {
 
			Window *w_osk = FindWindowById(WC_OSK, 0);
 
			if (w_osk != NULL && w_osk->parent == w) w_osk->OnInvalidateData();
 
		}
 
	}
 
}
 

	
 
void QueryString::DrawEditBox(Window *w, int wid)
0 comments (0 inline, 0 general)