diff --git a/games/micropolis/Makefile b/games/micropolis/Makefile index bfb84253b9b..3792846fc62 100644 --- a/games/micropolis/Makefile +++ b/games/micropolis/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2008/01/27 16:34:32 deanna Exp $ +# $OpenBSD: Makefile,v 1.7 2008/01/27 18:16:22 espie Exp $ COMMENT= city-building simulation @@ -6,6 +6,7 @@ DISTNAME= micropolis-20080126 WRKDIST= ${WRKDIR}/micropolis WRKSRC= ${WRKDIST}/src MAKE_FILE= makefile +PKGNAME= ${DISTNAME}p0 CATEGORIES= games diff --git a/games/micropolis/patches/patch-src_sim_w_tk_c b/games/micropolis/patches/patch-src_sim_w_tk_c new file mode 100644 index 00000000000..2f2c407b2f8 --- /dev/null +++ b/games/micropolis/patches/patch-src_sim_w_tk_c @@ -0,0 +1,18 @@ +$OpenBSD: patch-src_sim_w_tk_c,v 1.3 2008/01/27 18:16:22 espie Exp $ +--- src/sim/w_tk.c.orig Sun Jan 27 16:10:47 2008 ++++ src/sim/w_tk.c Sun Jan 27 16:19:46 2008 +@@ -472,11 +472,12 @@ TileViewEventProc(ClientData clientData, XEvent *event + view->tool_x = x; view->tool_y = y; + } + ++ + /* 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