(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed

This commit is contained in:
smatz
2008-02-17 17:00:43 +00:00
parent d7a72c7002
commit d3d126f999
8 changed files with 120 additions and 15 deletions

View File

@@ -1709,6 +1709,21 @@ void HandleKeypress(uint32 key)
}
}
void HandleCtrlChanged()
{
WindowEvent e;
e.event = WE_CTRL_CHANGED;
e.we.ctrl.cont = true;
/* Call the event, start with the uppermost window. */
for (Window* const *wz = _last_z_window; wz != _z_windows;) {
Window *w = *--wz;
w->wndproc(w, &e);
if (!e.we.ctrl.cont) break;
}
}
extern void UpdateTileSelection();
extern bool VpHandlePlaceSizingDrag();