Changeset - r11454:3e9570b5979f
[Not reviewed]
master
0 2 0
alberth - 15 years ago 2009-03-22 18:46:56
alberth@openttd.org
(svn r15817) -Codechange: Make room for additional widget types (Rubidium)
2 files changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/widget_type.h
Show inline comments
 
@@ -95,10 +95,9 @@ enum WidgetType {
 
	WWT_EDITBOX,    ///< a textbox for typing
 
	WWT_LAST,       ///< Last Item. use WIDGETS_END to fill up padding!!
 

	
 
	WWT_MASK = 0x1F,
 
	WWT_MASK = 0x7F,
 

	
 
	WWB_PUSHBUTTON  = 1 << 5,
 
	WWB_MASK        = 0xE0,
 
	WWB_PUSHBUTTON  = 1 << 7,
 

	
 
	WWT_PUSHBTN     = WWT_PANEL   | WWB_PUSHBUTTON,
 
	WWT_PUSHTXTBTN  = WWT_TEXTBTN | WWB_PUSHBUTTON,
src/window.cpp
Show inline comments
 
@@ -284,7 +284,7 @@ static void DispatchLeftClickEvent(Windo
 
			}
 
		}
 

	
 
		if (wi->type & WWB_MASK) {
 
		if (wi->type & WWB_PUSHBUTTON) {
 
			/* special widget handling for buttons*/
 
			switch (wi->type) {
 
				default: NOT_REACHED();
0 comments (0 inline, 0 general)