summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-30 11:01:05 +0000
committeralberth <alberth@openttd.org>2009-05-30 11:01:05 +0000
commit5eecf3e5cb6da881ca4095561d19dfc4364d2823 (patch)
tree05dc4a29ab068efd3c7137c7713c3dec422634b3 /src/misc_gui.cpp
parent1448160e1e63a9a1945a91c79fe8c2068ba081bd (diff)
downloadopenttd-5eecf3e5cb6da881ca4095561d19dfc4364d2823.tar.xz
(svn r16463) -Cleanup: Code style fixes.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 651f85f12..14340e829 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1072,11 +1072,11 @@ bool HandleCaret(Textbuf *tb)
bool QueryString::HasEditBoxFocus(const Window *w, int wid) const
{
- return ((w->window_class == WC_OSK &&
+ return (w->window_class == WC_OSK &&
_focused_window == w->parent &&
- w->parent->focused_widget &&
+ w->parent->focused_widget != NULL &&
w->parent->focused_widget->type == WWT_EDITBOX) ||
- w->IsWidgetGloballyFocused(wid));
+ w->IsWidgetGloballyFocused(wid);
}
HandleEditBoxResult QueryString::HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state)