equal
deleted
inserted
replaced
657 |
657 |
658 /** |
658 /** |
659 * Sets the lowered/raised status of a widget. |
659 * Sets the lowered/raised status of a widget. |
660 * @param w : Window on which the widget is located |
660 * @param w : Window on which the widget is located |
661 * @param widget_index : index of this widget in the window |
661 * @param widget_index : index of this widget in the window |
662 * @param hidden_stat : status to use ie: lowered = true, raised = false |
662 * @param lowered_stat : status to use ie: lowered = true, raised = false |
663 */ |
663 */ |
664 static inline void SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat) |
664 static inline void SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat) |
665 { |
665 { |
666 assert(widget_index < w->widget_count); |
666 assert(widget_index < w->widget_count); |
667 SB(w->widget[widget_index].display_flags, WIDG_LOWERED, 1, !!lowered_stat); |
667 SB(w->widget[widget_index].display_flags, WIDG_LOWERED, 1, !!lowered_stat); |