diff options
author | smatz <smatz@openttd.org> | 2008-05-19 19:17:56 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-19 19:17:56 +0000 |
commit | c1e45bcb01da316e1cefc5a4f6cc9013bde0781f (patch) | |
tree | 7df9903a1f8ad20cab7cec0d49d26b6c8cfb6d61 /src/textbuf_gui.h | |
parent | ebe6a8b0df246f7232f96272c502ce87f3cc091a (diff) | |
download | openttd-c1e45bcb01da316e1cefc5a4f6cc9013bde0781f.tar.xz |
(svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window
Diffstat (limited to 'src/textbuf_gui.h')
-rw-r--r-- | src/textbuf_gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textbuf_gui.h b/src/textbuf_gui.h index 13778cea8..4e61df659 100644 --- a/src/textbuf_gui.h +++ b/src/textbuf_gui.h @@ -28,8 +28,10 @@ bool MoveTextBufferPos(Textbuf *tb, int navmode); void InitializeTextBuffer(Textbuf *tb, const char *buf, uint16 maxlength, uint16 maxwidth); void UpdateTextBufferSize(Textbuf *tb); +typedef void QueryCallbackProc(Window*, bool); + void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, Window *parent, CharSetFilter afilter); -void ShowQuery(StringID caption, StringID message, Window *w, void (*callback)(Window*, bool)); +void ShowQuery(StringID caption, StringID message, Window *w, QueryCallbackProc *callback); /** The number of 'characters' on the on-screen keyboard. */ static const uint OSK_KEYBOARD_ENTRIES = 50; |