mirror of https://github.com/OpenTTD/OpenTTD
(svn r9597) -Codechange: Exclude sign transparency when toggling all options on/off
parent
23d9d6cfb4
commit
91c407bd37
|
@ -2350,12 +2350,13 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'X': {
|
case 'X': {
|
||||||
|
/* Toggle all transparency options except for signs */
|
||||||
static byte trans_opt = ~0;
|
static byte trans_opt = ~0;
|
||||||
if (_transparent_opt == 0) {
|
if (GB(_transparent_opt, 1, 7) == 0) {
|
||||||
_transparent_opt = trans_opt;
|
SB(_transparent_opt, 1, 7, GB(trans_opt, 1, 7));
|
||||||
} else {
|
} else {
|
||||||
trans_opt = _transparent_opt;
|
trans_opt = _transparent_opt;
|
||||||
_transparent_opt = 0;
|
SB(_transparent_opt, 1, 7, 0);
|
||||||
}
|
}
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue