(svn r15817) -Codechange: Make room for additional widget types (Rubidium)

This commit is contained in:
alberth 2009-03-22 18:46:56 +00:00
parent dcf7d05a66
commit 2fe151bd92
2 changed files with 3 additions and 4 deletions

View File

@ -95,10 +95,9 @@ enum WidgetType {
WWT_EDITBOX, ///< a textbox for typing WWT_EDITBOX, ///< a textbox for typing
WWT_LAST, ///< Last Item. use WIDGETS_END to fill up padding!! WWT_LAST, ///< Last Item. use WIDGETS_END to fill up padding!!
WWT_MASK = 0x1F, WWT_MASK = 0x7F,
WWB_PUSHBUTTON = 1 << 5, WWB_PUSHBUTTON = 1 << 7,
WWB_MASK = 0xE0,
WWT_PUSHBTN = WWT_PANEL | WWB_PUSHBUTTON, WWT_PUSHBTN = WWT_PANEL | WWB_PUSHBUTTON,
WWT_PUSHTXTBTN = WWT_TEXTBTN | WWB_PUSHBUTTON, WWT_PUSHTXTBTN = WWT_TEXTBTN | WWB_PUSHBUTTON,

View File

@ -284,7 +284,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click)
} }
} }
if (wi->type & WWB_MASK) { if (wi->type & WWB_PUSHBUTTON) {
/* special widget handling for buttons*/ /* special widget handling for buttons*/
switch (wi->type) { switch (wi->type) {
default: NOT_REACHED(); default: NOT_REACHED();