summaryrefslogtreecommitdiffstats
path: root/games/gnome-games
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-05-21 05:30:23 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-05-21 05:30:23 +0800
commite09047f8d10deed9a17ac324dfb775568fbef65f (patch)
treedfd4eb1b2d3295b97e1d8ded10fa2631cca5a6ca /games/gnome-games
parentbe6d29da7441f962906caf765eea37fd334a3d3b (diff)
downloadmarcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar.gz
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar.bz2
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar.lz
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar.xz
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.tar.zst
marcuscom-ports-e09047f8d10deed9a17ac324dfb775568fbef65f.zip
Fix build on 4.X.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2301 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'games/gnome-games')
-rw-r--r--games/gnome-games/files/patch-gataxx_gtkgridboard.c21
-rw-r--r--games/gnome-games/files/patch-iagno_othello.c38
2 files changed, 59 insertions, 0 deletions
diff --git a/games/gnome-games/files/patch-gataxx_gtkgridboard.c b/games/gnome-games/files/patch-gataxx_gtkgridboard.c
new file mode 100644
index 000000000..9ceabef83
--- /dev/null
+++ b/games/gnome-games/files/patch-gataxx_gtkgridboard.c
@@ -0,0 +1,21 @@
+--- gataxx/gtkgridboard.c.orig Thu May 20 17:17:56 2004
++++ gataxx/gtkgridboard.c Thu May 20 17:18:13 2004
+@@ -140,6 +140,7 @@
+ static gint gtk_gridboard_button_press(GtkWidget *widget, GdkEventButton *event)
+ {
+ GtkGridBoard * gridboard;
++ int x, y;
+
+ g_return_val_if_fail (widget != NULL, FALSE);
+ g_return_val_if_fail (GTK_IS_GRIDBOARD(widget), FALSE);
+@@ -147,8 +148,8 @@
+
+ gridboard=GTK_GRIDBOARD(widget);
+
+- int x=event->x/gridboard->tilewidth;
+- int y=event->y/gridboard->tileheight;
++ x=event->x/gridboard->tilewidth;
++ y=event->y/gridboard->tileheight;
+ g_signal_emit (G_OBJECT(widget),
+ gridboard_signals[BOXCLICKED], 0, x, y);
+ return TRUE;
diff --git a/games/gnome-games/files/patch-iagno_othello.c b/games/gnome-games/files/patch-iagno_othello.c
new file mode 100644
index 000000000..4b87018a5
--- /dev/null
+++ b/games/gnome-games/files/patch-iagno_othello.c
@@ -0,0 +1,38 @@
+--- iagno/othello.c.orig Thu May 20 17:20:21 2004
++++ iagno/othello.c Thu May 20 17:21:11 2004
+@@ -544,7 +544,7 @@
+ memcpy (tboard, board, sizeof (gint8) * 8 * 8);
+ move_board(tboard, i, j, me, 0);
+
+- // assume that opponent takes best move
++ /* assume that opponent takes best move */
+ tmp_move = find_best_move(tboard, not_me, ply_depth-1,
+ -pass_thresh, -use_thresh, 0, 0);
+
+@@ -559,7 +559,7 @@
+ }
+ }
+
+- // check if we have to pass
++ /* check if we have to pass */
+ if (best_x == 8 && best_y == 8) {
+ tmp_move = find_best_move(board, not_me, ply_depth-1,
+ -pass_thresh, -use_thresh, 0, 0);
+@@ -802,14 +802,14 @@
+ found_free = TRUE;
+ }
+
+- // check if a player is dead
++ /* check if a player is dead */
+ if (!found_me && found_not_me)
+ return (-10000);
+ else if (found_me && !found_not_me)
+ return (10000);
+
+- // if the game is finished, return the actual score rather than
+- // a huristic
++ /* if the game is finished, return the actual score rather than
++ * a huristic */
+ if (!found_free)
+ return (actual_score);
+