summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-02 13:32:41 +0000
committerrubidium <rubidium@openttd.org>2007-12-02 13:32:41 +0000
commit50fced3c66b6af28856e3776ca0e7a0799cb9827 (patch)
tree5f244202ee382639f930008c4f084705986607e1 /src
parentb20b2f4ec8cc6e09600b2cccf075b79a95487aa2 (diff)
downloadopenttd-50fced3c66b6af28856e3776ca0e7a0799cb9827.tar.xz
(svn r11554) -Codechange: be more consistent with the naming of the widget functions.
Diffstat (limited to 'src')
-rw-r--r--src/window.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h
index d253f76df..ec148acb4 100644
--- a/src/window.h
+++ b/src/window.h
@@ -288,7 +288,7 @@ struct Window {
void ShowWidget(byte widget_index);
bool IsWidgetHidden(byte widget_index) const;
void SetWidgetLoweredState(byte widget_index, bool lowered_stat);
- void ToggleLoweredState(byte widget_index);
+ void ToggleWidgetLoweredState(byte widget_index);
void LowerWidget(byte widget_index);
void RaiseWidget(byte widget_index);
bool IsWidgetLowered(byte widget_index) const;
@@ -938,7 +938,7 @@ inline void Window::SetWidgetLoweredState(byte widget_index, bool lowered_stat)
* Invert the lowered/raised status of a widget.
* @param widget_index : index of this widget in the window
*/
-inline void Window::ToggleLoweredState(byte widget_index)
+inline void Window::ToggleWidgetLoweredState(byte widget_index)
{
assert(widget_index < this->widget_count);
ToggleBit(this->widget[widget_index].display_flags, WIDG_LOWERED);