summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-13 13:43:55 +0000
committertron <tron@openttd.org>2005-11-13 13:43:55 +0000
commitee15e3de13643b2d09abcc5424bf8e2d916cff75 (patch)
tree385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /misc_gui.c
parent59e885c2bff5b1af6d7f5473106e9aa1f562abfd (diff)
downloadopenttd-ee15e3de13643b2d09abcc5424bf8e2d916cff75.tar.xz
(svn r3172) static, const
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c
index f3addb253..c349dbd46 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -29,7 +29,7 @@
static bool _fios_path_changed;
static bool _savegame_sort_dirty;
-bool _query_string_active;
+static bool _query_string_active;
typedef struct LandInfoData {
Town *town;
@@ -41,10 +41,9 @@ typedef struct LandInfoData {
static void LandInfoWndProc(Window *w, WindowEvent *e)
{
- LandInfoData *lid;
- StringID str;
-
if (e->event == WE_PAINT) {
+ const LandInfoData* lid;
+ StringID str;
int i;
DrawWindowWidgets(w);
@@ -883,7 +882,8 @@ bool MoveTextBufferPos(Textbuf *tb, int navmode)
*/
void UpdateTextBufferSize(Textbuf *tb)
{
- char *buf;
+ const char* buf;
+
tb->length = 0;
tb->width = 0;