summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-30 11:42:19 +0000
committeralberth <alberth@openttd.org>2009-05-30 11:42:19 +0000
commitbfaf610fff372d6c4b0cdd887ec1997b97e8d25f (patch)
treec0fc34ce49c5f152701a46039fa8ec2adbec1bcd /src
parentbfb8df3fb9e21fffce0560a4fb44bb615663a7a2 (diff)
downloadopenttd-bfaf610fff372d6c4b0cdd887ec1997b97e8d25f.tar.xz
(svn r16466) -Codechange: Improved wording in comments.
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp2
-rw-r--r--src/window_gui.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 10165ef87..aed4065b2 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -287,7 +287,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click)
}
if (w->focused_widget != wi) {
- /* Repaint the widget that loss focus. A focused edit box may else leave the caret left on the screen */
+ /* Repaint the widget that lost focus. A focused edit box may else leave the caret on the screen. */
if (w->focused_widget != NULL) w->InvalidateWidget(w->focused_widget - w->widget);
focused_widget_changed = true;
w->focused_widget = wi;
diff --git a/src/window_gui.h b/src/window_gui.h
index 975cdee1b..b035a9cfc 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -264,14 +264,13 @@ public:
}
/**
- * Set focus within this window to given widget. The function however don't
- * change which window that has focus.
- * @param widget_index : index of the widget in the window to set focus to
+ * Set focus within this window to the given widget. The function however doesn't change which window has focus.
+ * @param widget_index Index of the widget in the window to set the focus to.
*/
inline void SetFocusedWidget(byte widget_index)
{
if (widget_index < this->widget_count) {
- /* Repaint the widget that loss focus. A focused edit box may else leave the caret left on the screen */
+ /* Repaint the widget that lost focus. A focused edit box may else leave the caret on the screen. */
if (this->focused_widget != NULL && this->focused_widget - this->widget != widget_index) {
this->InvalidateWidget(this->focused_widget - this->widget);
}