src/transparency_gui.cpp
changeset 9116 f2491d3c321b
parent 9111 48ce04029fe4
child 9143 029e126e3439
equal deleted inserted replaced
9115:47ae980bace3 9116:f2491d3c321b
    64 		case WE_CLICK:
    64 		case WE_CLICK:
    65 			if (e->we.click.widget >= TTW_WIDGET_SIGNS && e->we.click.widget < TTW_WIDGET_END) {
    65 			if (e->we.click.widget >= TTW_WIDGET_SIGNS && e->we.click.widget < TTW_WIDGET_END) {
    66 				if (_ctrl_pressed) {
    66 				if (_ctrl_pressed) {
    67 					/* toggle the bit of the transparencies lock variable */
    67 					/* toggle the bit of the transparencies lock variable */
    68 					ToggleTransparencyLock((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS));
    68 					ToggleTransparencyLock((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS));
    69 					SetWindowDirty(w);
    69 					w->SetDirty();
    70 				} else {
    70 				} else {
    71 					/* toggle the bit of the transparencies variable and play a sound */
    71 					/* toggle the bit of the transparencies variable and play a sound */
    72 					ToggleTransparency((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS));
    72 					ToggleTransparency((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS));
    73 					SndPlayFx(SND_15_BEEP);
    73 					SndPlayFx(SND_15_BEEP);
    74 					MarkWholeScreenDirty();
    74 					MarkWholeScreenDirty();