[gnome-2048] Small cleaning.



commit e9d2a6a72cc98f87d3c88a17be87a18112e5538b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 15 10:48:04 2019 +0100

    Small cleaning.

 data/mainwindow.ui | 4 ----
 src/game.vala      | 6 +++---
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index 66710ad..cbf177d 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -46,10 +46,6 @@
               </object>
             </child>
           </object>
-          <packing>
-            <property name="left-attach">1</property>
-            <property name="top-attach">1</property>
-          </packing>
         </child>
       </object>
     </child>
diff --git a/src/game.vala b/src/game.vala
index c75582f..2fe2b31 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -42,8 +42,8 @@ private class Game : Object
         }
     }
 
+    private int BLANK_COL_WIDTH  = 10;
     private int BLANK_ROW_HEIGHT = 10;
-    private int BLANK_COL_WIDTH = 10;
 
     private Grid _grid;
 
@@ -240,8 +240,8 @@ private class Game : Object
         {
             for (int j = 0; j < cols; j++)
             {
-                float x = j * tile_width + (j+1) * BLANK_COL_WIDTH;
-                float y = i * tile_height + (i+1) * BLANK_ROW_HEIGHT;
+                float x = j * tile_width  + (j + 1) * BLANK_COL_WIDTH;
+                float y = i * tile_height + (i + 1) * BLANK_ROW_HEIGHT;
 
                 RoundedRectangle rect = new RoundedRectangle (x, y, tile_width, tile_height);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]