summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-10-05 09:21:44 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-10-05 09:50:38 (GMT)
commitbb0465258d20badae7f9aa62849c02a94244570c (patch)
tree62a4b0e03c40749f542e23a36ad3ee4bb8594f00 /demos
parenta943e0ae741115fbdd72b7ecfa7702f90ad0890b (diff)
downloadQt-bb0465258d20badae7f9aa62849c02a94244570c.zip
Qt-bb0465258d20badae7f9aa62849c02a94244570c.tar.gz
Qt-bb0465258d20badae7f9aa62849c02a94244570c.tar.bz2
Consistent Commenting in Samegame
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/declarative/samegame/content/samegame.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/declarative/samegame/content/samegame.js b/demos/declarative/samegame/content/samegame.js
index e42b7cc..cf55b59 100755
--- a/demos/declarative/samegame/content/samegame.js
+++ b/demos/declarative/samegame/content/samegame.js
@@ -30,6 +30,7 @@ function initBoard()
board[i].destroy();
}
+ //Calculate board size
maxX = Math.floor(gameCanvas.width/tileSize);
maxY = Math.floor(gameCanvas.height/tileSize);
maxIndex = maxY*maxX;