openbsd-ports/games/gcompris/patches/patch-src_boards_erase_c
ajacoutot 3a6f60e83e - update to gcompris-8.4.1:
* GPLv3
 * use of gstreamer instead of sdl-mixer
 * all voices have been re-encoded
 * new/improved translations
2007-10-20 12:49:02 +00:00

19 lines
640 B
Plaintext

$OpenBSD: patch-src_boards_erase_c,v 1.3 2007/10/20 12:49:02 ajacoutot Exp $
--- src/boards/erase.c.orig Fri Aug 31 00:52:27 2007
+++ src/boards/erase.c Sat Sep 15 12:17:24 2007
@@ -519,14 +519,6 @@ canvas_event(GnomeCanvas *canvas, GdkEvent *event)
switch (event->type)
{
case GDK_BUTTON_PRESS:
- if (board_mode == NORMAL) {
- int x = event->button.x;
- int y = event->button.y;
- int item_x = x / (BOARDWIDTH/number_of_item_x);
- int item_y = y / (BOARDHEIGHT/number_of_item_y);
- if (items_per_cell[item_x * number_of_item_x + item_y] == 0)
- add_one_item(x, y, 1);
- }
break;
default:
break;