summaryrefslogtreecommitdiff
path: root/bridge_gui.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
committerbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
commit1c56a5ae0fefac5636a7f93c3bed9285fca558d8 (patch)
tree94c5771fcfbd839db8eabe8b14662d04e44ab61c /bridge_gui.c
parent0f78b620fbb4e4ca744ceffffc43a9c0846bca12 (diff)
downloadopenttd-1c56a5ae0fefac5636a7f93c3bed9285fca558d8.tar.xz
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'bridge_gui.c')
-rw-r--r--bridge_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge_gui.c b/bridge_gui.c
index 1ee87f1cd..c3a808820 100644
--- a/bridge_gui.c
+++ b/bridge_gui.c
@@ -59,9 +59,9 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e)
} break;
case WE_KEYPRESS: {
- uint i = e->keypress.keycode - '1';
+ uint i = e->we.keypress.keycode - '1';
if (i < 9 && i < _bridgedata.count) {
- e->keypress.cont = false;
+ e->we.keypress.cont = false;
BuildBridge(w, i);
}
@@ -69,8 +69,8 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e)
}
case WE_CLICK:
- if (e->click.widget == 2) {
- uint ind = ((int)e->click.pt.y - 14) / 22;
+ if (e->we.click.widget == 2) {
+ uint ind = ((int)e->we.click.pt.y - 14) / 22;
if (ind < 4 && (ind += w->vscroll.pos) < _bridgedata.count)
BuildBridge(w, ind);
}