[gnome-games] lightsoff: Fix offset so board is vertically centered
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] lightsoff: Fix offset so board is vertically centered
- Date: Sun, 11 Oct 2009 14:50:04 +0000 (UTC)
commit ea5f6bfa1537da209aaf92e701ae1b29a3c9e45d
Author: Tim Horton <hortont424 gmail com>
Date: Sat Oct 10 16:25:22 2009 -0400
lightsoff: Fix offset so board is vertically centered
lightsoff/src/Board.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lightsoff/src/Board.js b/lightsoff/src/Board.js
index 20aa694..f8c4268 100644
--- a/lightsoff/src/Board.js
+++ b/lightsoff/src/Board.js
@@ -9,8 +9,8 @@ var tiles = 5;
// as lights have center gravity.
function position_for_light(x, y)
{
- var p_l = {x: (x + 0.5) * Settings.theme.light[0].width,
- y: (y + 0.5) * Settings.theme.light[0].height};
+ var p_l = {x: (x + 0.5) * Settings.theme.light[0].width + 2,
+ y: (y + 0.5) * Settings.theme.light[0].height + 2};
return p_l;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]