Changeset - r6598:1e5a949e7cdc
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2007-05-07 20:25:20
peter1138@openttd.org
(svn r9812) -Fix (r9679): Obiwan prevented proper display of last transparency button.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/transparency_gui.cpp
Show inline comments
 
@@ -23,6 +23,7 @@ enum TransparencyToolbarWidgets{
 
	TTW_WIDGET_BUILDINGS,    ///< Make player buildings and structures transparent
 
	TTW_WIDGET_BRIDGES,      ///< Make bridges transparent
 
	TTW_WIDGET_STRUCTURES,   ///< Make unmovable structures transparent
 
	TTW_WIDGET_END,          ///< End of toggle buttons
 
};
 

	
 
/** Toggle the bits of the transparencies variable
 
@@ -41,7 +42,7 @@ static void TransparencyToolbWndProc(Win
 
		case WE_PAINT:
 
			/* must be sure that the widgets show the transparency variable changes
 
			 * also when we use shortcuts */
 
			for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_STRUCTURES; i++) {
 
			for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) {
 
				SetWindowWidgetLoweredState(w, i, HASBIT(_transparent_opt, i - TTW_WIDGET_SIGNS));
 
			}
 
			DrawWindowWidgets(w);
0 comments (0 inline, 0 general)