From 1c56a5ae0fefac5636a7f93c3bed9285fca558d8 Mon Sep 17 00:00:00 2001 From: belugas Date: Sat, 23 Sep 2006 02:39:24 +0000 Subject: (svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct --- bridge_gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bridge_gui.c') 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); } -- cgit v1.2.3-70-g09d2