Changeset - r9226:2748f062ee3d
[Not reviewed]
master
0 1 0
glx - 16 years ago 2008-05-14 19:08:09
glx@openttd.org
(svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -988,28 +988,27 @@ void QueryStringBaseWindow::DrawEditBox(
 
	this->QueryString::DrawEditBox(this, wid);
 
}
 

	
 
enum QueryStringWidgets {
 
	QUERY_STR_WIDGET_TEXT = 3,
 
	QUERY_STR_WIDGET_CANCEL,
 
	QUERY_STR_WIDGET_OK
 
};
 

	
 

	
 
struct QueryStringWindow : public QueryStringBaseWindow
 
{
 
	Window *parent;
 

	
 
	QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc), parent(parent)
 
	QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc)
 
	{
 
		this->parent = parent;
 
		SetBit(_no_scroll, SCROLL_EDIT);
 

	
 
		this->FindWindowPlacementAndResize(desc);
 
	}
 

	
 
	virtual void OnPaint()
 
	{
 
		SetDParam(0, this->caption);
 
		DrawWindowWidgets(this);
 

	
 
		this->DrawEditBox(QUERY_STR_WIDGET_TEXT);
 
	}
0 comments (0 inline, 0 general)