diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:44:28 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:44:28 +0000 |
commit | 81eefcdd20a4f2ca6b390b9e435ed9c17943708e (patch) | |
tree | ce851f568ebe1fa88d5174b3e9b0b235e16ccc0f /games/xconq/files/patch-tcltk__tkmap.c | |
parent | Now libexttextcat and libtextcat can happily co-exist. (diff) |
- Update to version 7.5.0.0.p.0.20050612.
PR: ports/174192
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes:
svn path=/head/; revision=311578
Diffstat (limited to 'games/xconq/files/patch-tcltk__tkmap.c')
-rw-r--r-- | games/xconq/files/patch-tcltk__tkmap.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/games/xconq/files/patch-tcltk__tkmap.c b/games/xconq/files/patch-tcltk__tkmap.c new file mode 100644 index 000000000000..66b5e4fcb654 --- /dev/null +++ b/games/xconq/files/patch-tcltk__tkmap.c @@ -0,0 +1,42 @@ +--- tcltk/tkmap.c.orig ++++ tcltk/tkmap.c +@@ -976,8 +976,11 @@ + DGprintf("Pixel %d,%d -> unit %s\n", sx, sy, unit_desig(*unitp)); + #endif + nearest_unit_view(dside, mapw->vp, sx, sy, &uview); +- if (uview) ++ if (uview) { + *unitp = view_unit(uview); ++ } else { ++ *unitp = NULL; ++ } + return TRUE; + } + +@@ -3046,7 +3049,7 @@ + wid2 = wid / 2; + XSetLineAttributes(dpy, gc, wid, LineSolid, CapButt, JoinMiter); + color = dside->ui->cell_color[b]; +- if ((int)color < 0) ++ if ((long)color < 0) + color = dside->ui->blackcolor; + XSetForeground(dpy, gc, color->pixel); + XSetBackground(dpy, gc, dside->ui->whitecolor->pixel); +@@ -3134,7 +3137,7 @@ + wid2 = wid / 2; + XSetLineAttributes(dpy, gc, wid, LineSolid, CapButt, JoinMiter); + color = dside->ui->cell_color[c]; +- if ((int)color < 0) ++ if ((long)color < 0) + color = dside->ui->blackcolor; + XSetForeground(dpy, gc, color->pixel); + XSetBackground(dpy, gc, dside->ui->whitecolor->pixel); +@@ -3241,7 +3244,7 @@ + wid2 = wid / 2; + XSetLineAttributes(dpy, gc, wid, LineSolid, CapButt, JoinMiter); + color = dside->ui->cell_color[c]; +- if ((int)color < 0) ++ if ((long)color < 0) + color = dside->ui->blackcolor; + XSetForeground(dpy, gc, color->pixel); + XSetBackground(dpy, gc, dside->ui->whitecolor->pixel); |