Changeset - r6449:b9e4caf00ca5
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2007-04-11 20:14:11
peter1138@openttd.org
(svn r9597) -Codechange: Exclude sign transparency when toggling all options on/off
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/main_gui.cpp
Show inline comments
 
@@ -2350,12 +2350,13 @@ static void MainWindowWndProc(Window *w,
 
				break;
 

	
 
			case 'X': {
 
				/* Toggle all transparency options except for signs */
 
				static byte trans_opt = ~0;
 
				if (_transparent_opt == 0) {
 
					_transparent_opt = trans_opt;
 
				if (GB(_transparent_opt, 1, 7) == 0) {
 
					SB(_transparent_opt, 1, 7, GB(trans_opt, 1, 7));
 
				} else {
 
					trans_opt = _transparent_opt;
 
					_transparent_opt = 0;
 
					SB(_transparent_opt, 1, 7, 0);
 
				}
 
				MarkWholeScreenDirty();
 
				break;
0 comments (0 inline, 0 general)