diff options
Diffstat (limited to 'games/gnomegames2/files/patch-gataxx_gtkgridboard.c')
-rw-r--r-- | games/gnomegames2/files/patch-gataxx_gtkgridboard.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/gnomegames2/files/patch-gataxx_gtkgridboard.c b/games/gnomegames2/files/patch-gataxx_gtkgridboard.c new file mode 100644 index 000000000000..9ceabef83f4f --- /dev/null +++ b/games/gnomegames2/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; |