(svn r16466) -Codechange: Improved wording in comments.

This commit is contained in:
alberth
2009-05-30 11:42:19 +00:00
parent bfb8df3fb9
commit bfaf610fff
2 changed files with 4 additions and 5 deletions

View File

@@ -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);
}