[gbrainy] Fixes bugzilla #693532
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Fixes bugzilla #693532
- Date: Sun, 14 Apr 2013 20:30:32 +0000 (UTC)
commit 6a9ccbd9afd2127a48e19c7e22ca365b8e692e4a
Author: Jordi Mas <jmas softcatala org>
Date: Sun Apr 14 22:33:38 2013 +0200
Fixes bugzilla #693532
src/Games/Logic/PuzzleFindTheNumber.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleFindTheNumber.cs b/src/Games/Logic/PuzzleFindTheNumber.cs
index 707045d..ec507c5 100644
--- a/src/Games/Logic/PuzzleFindTheNumber.cs
+++ b/src/Games/Logic/PuzzleFindTheNumber.cs
@@ -197,8 +197,8 @@ namespace gbrainy.Games.Logic
private void SetDrawingAreas ()
{
- double rect_w = DrawAreaWidth / rows;
- double rect_h = DrawAreaHeight / columns;
+ double rect_w = DrawAreaWidth / columns;
+ double rect_h = DrawAreaHeight / rows;
Container container = new Container (DrawAreaX, DrawAreaY, 0.8, 0.8);
AddWidget (container);
@@ -208,8 +208,8 @@ namespace gbrainy.Games.Logic
for (int row = 0; row < rows; row++)
{
DrawableArea drawable_area = new DrawableArea (rect_w, rect_h);
- drawable_area.X = DrawAreaX + row * rect_w;
- drawable_area.Y = DrawAreaY + column * rect_h;
+ drawable_area.X = DrawAreaX + column * rect_w;
+ drawable_area.Y = DrawAreaY + row * rect_h;
container.AddChild (drawable_area);
string num = grid[row * columns + column].ToString ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]