[gnome-games] [same-gnome-clutter] Use correct dimension to calculate new tile position
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [same-gnome-clutter] Use correct dimension to calculate new tile position
- Date: Thu, 16 Jul 2009 22:34:47 +0000 (UTC)
commit 4f5f1a85bffceebc5f3fa363629435146d37dbd3
Author: Tim Horton <hortont svn gnome org>
Date: Mon Jul 13 16:29:23 2009 -0400
[same-gnome-clutter] Use correct dimension to calculate new tile position
same-gnome-clutter/src/Board.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/same-gnome-clutter/src/Board.js b/same-gnome-clutter/src/Board.js
index 29926a9..03c89b0 100644
--- a/same-gnome-clutter/src/Board.js
+++ b/same-gnome-clutter/src/Board.js
@@ -231,7 +231,7 @@ Board = new GType({
li.set_light_y(parseInt(y,10));
var new_x = real_x * main.tile_size + main.offset;
- var new_y = (main.size_o.columns - y - 1) * main.tile_size + main.offset;
+ var new_y = (main.size_o.rows - y - 1) * main.tile_size + main.offset;
if(!li.get_closed() && ((new_x != li.x) ||
(new_y != li.y)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]