summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-04 13:38:45 +0000
committerrubidium <rubidium@openttd.org>2006-12-04 13:38:45 +0000
commit05559bcdcd30d907eb43cbffa8744de195cb2ca3 (patch)
tree57ea2e5d1baf71c44d0bbd74b953659d73dbc47d
parentc02e39945e2533c7f51f650bcaa00fa11af6a784 (diff)
downloadopenttd-05559bcdcd30d907eb43cbffa8744de195cb2ca3.tar.xz
(svn r7353) -Codechange: constify Window* in IsWindowWidget(Lowered|Hidden|Disabled)
-rw-r--r--window.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.h b/window.h
index 534bfb4e1..3151b8911 100644
--- a/window.h
+++ b/window.h
@@ -682,7 +682,7 @@ static inline bool IsWidgetDisabled(const Widget *wi)
* @param widget_index : index of this widget in the window
* @return status of the widget ie: disabled = true, enabled = false
*/
-static inline bool IsWindowWidgetDisabled(Window *w, byte widget_index)
+static inline bool IsWindowWidgetDisabled(const Window *w, byte widget_index)
{
assert(widget_index < w->widget_count);
return IsWidgetDisabled(&w->widget[widget_index]);
@@ -739,7 +739,7 @@ static inline bool IsWidgetHidden(const Widget *wi)
* @param widget_index : index of this widget in the window
* @return status of the widget ie: hidden = true, visible = false
*/
-static inline bool IsWindowWidgetHidden(Window *w, byte widget_index)
+static inline bool IsWindowWidgetHidden(const Window *w, byte widget_index)
{
assert(widget_index < w->widget_count);
return IsWidgetHidden(&w->widget[widget_index]);
@@ -794,7 +794,7 @@ static inline void RaiseWindowWidget(Window *w, byte widget_index)
* @param widget_index : index of this widget in the window
* @return status of the widget ie: lowered = true, raised= false
*/
-static inline bool IsWindowWidgetLowered(Window *w, byte widget_index)
+static inline bool IsWindowWidgetLowered(const Window *w, byte widget_index)
{
assert(widget_index < w->widget_count);
return HASBIT(w->widget[widget_index].display_flags, WIDG_LOWERED);