(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the

query has no parent (eg give money, rename waypoint), the global function
 HandleOnEditText is used.
This commit is contained in:
Darkvater
2006-12-30 01:17:53 +00:00
parent ed2c8ecef5
commit c87fcab772
18 changed files with 112 additions and 136 deletions

View File

@@ -41,8 +41,6 @@ static const Widget _select_game_widgets[] = {
{ WIDGETS_END},
};
extern void HandleOnEditText(WindowEvent *e);
static inline void SetNewLandscapeType(byte landscape)
{
_opt_newgame.landscape = landscape;
@@ -88,8 +86,6 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
case 16: HandleExitGameRequest(); break;
}
break;
case WE_ON_EDIT_TEXT: HandleOnEditText(e); break;
}
}