src/window.h
branchgamebalance
changeset 9908 0fa543611bbe
parent 9895 7bd07f43b0e3
child 9911 0b8b245a2391
equal deleted inserted replaced
9907:3b068c3a1c74 9908:0fa543611bbe
   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);