X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/438a1a51bbcf3ec4ce459775c6a664029339b4a3..ce97f582f12636d9ccd235548a7a52ea6bd4dca8:/src/sim/w_tk.c diff --git a/src/sim/w_tk.c b/src/sim/w_tk.c index ceed33a..027654d 100644 --- a/src/sim/w_tk.c +++ b/src/sim/w_tk.c @@ -475,8 +475,8 @@ TileViewEventProc(ClientData clientData, XEvent *eventPtr) /* XXX: redraw all views showing cursor */ /* XXX: also, make sure switching tools works w/out moving */ if (((view->tool_showing != last_showing) || - (view->tool_x != last_x) || - (view->tool_y != last_y))) { + ((view->tool_x >> 4) != (last_x >> 4)) || + ((view->tool_y >> 4) != (last_y >> 4)))) { #if 1 EventuallyRedrawView(view); #else