gnome-games r8685 - trunk/gnometris
- From: jclinton svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8685 - trunk/gnometris
- Date: Mon, 9 Feb 2009 01:26:33 +0000 (UTC)
Author: jclinton
Date: Mon Feb 9 01:26:33 2009
New Revision: 8685
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8685&view=rev
Log:
Move the initial positioning code inside Block class
This change make it easier to consume Block classes by taking
responsibility for initial positioning of the actors and making
it a private decision. Relies on Block.x and Block.y being correct.
Modified:
trunk/gnometris/blockops.cpp
Modified: trunk/gnometris/blockops.cpp
==============================================================================
--- trunk/gnometris/blockops.cpp (original)
+++ trunk/gnometris/blockops.cpp Mon Feb 9 01:26:33 2009
@@ -64,6 +64,8 @@
clutter_actor_destroy (CLUTTER_ACTOR(actor));
actor = clutter_clone_texture_new (CLUTTER_TEXTURE(texture_source));
clutter_group_add (CLUTTER_GROUP (chamber), actor);
+ clutter_actor_set_position (CLUTTER_ACTOR(actor), x, y);
+ clutter_actor_show (CLUTTER_ACTOR(actor));
}
Block&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]