gcompris r3608 - branches/gcomprixogoo/src/billard-activity
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3608 - branches/gcomprixogoo/src/billard-activity
- Date: Sun, 9 Nov 2008 22:25:42 +0000 (UTC)
Author: bcoudoin
Date: Sun Nov 9 22:25:42 2008
New Revision: 3608
URL: http://svn.gnome.org/viewvc/gcompris?rev=3608&view=rev
Log:
fixed to avoid uneeded refresh
Modified:
branches/gcomprixogoo/src/billard-activity/billard.c
Modified: branches/gcomprixogoo/src/billard-activity/billard.c
==============================================================================
--- branches/gcomprixogoo/src/billard-activity/billard.c (original)
+++ branches/gcomprixogoo/src/billard-activity/billard.c Sun Nov 9 22:25:42 2008
@@ -145,6 +145,9 @@
gcomprisBoard->number_of_sublevel=1; /* Go to next level after this number of 'play' */
gc_bar_set(GC_BAR_LEVEL);
+ gc_set_background(goo_canvas_get_root_item(gcomprisBoard->canvas),
+ "billard/foot_background.png");
+
minigolf_next_level();
gamewon = FALSE;
@@ -195,9 +198,6 @@
static void minigolf_next_level()
{
- gc_set_background(goo_canvas_get_root_item(gcomprisBoard->canvas),
- "billard/foot_background.png");
-
gc_bar_set_level(gcomprisBoard);
minigolf_destroy_all_items();
@@ -607,7 +607,8 @@
}
- gc_item_absolute_move(item, machItem->xpos, machItem->ypos);
+ if (machItem->vxo != 0 || machItem->vyo != 0)
+ gc_item_absolute_move(item, machItem->xpos, machItem->ypos);
if((machItem->ypos>=MIN_Y2-machItem->height-BORDER
&& (bounds.y1 - machItem->ypos)<=0) || collision == TRUE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]