(svn r9597) -Codechange: Exclude sign transparency when toggling all options on/off
--- a/src/main_gui.cpp Wed Apr 11 20:13:32 2007 +0000
+++ b/src/main_gui.cpp Wed Apr 11 20:14:11 2007 +0000
@@ -2350,12 +2350,13 @@
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;