Author: manolo
Date: 2012-05-18 09:23:15 -0700 (Fri, 18 May 2012)
New Revision: 9531
Log:
Fixed sudoku demo for group-relative coordinates

Modified:
   branches/branch-3.0/test/sudoku.cxx

Modified: branches/branch-3.0/test/sudoku.cxx
===================================================================
--- branches/branch-3.0/test/sudoku.cxx 2012-05-18 15:31:16 UTC (rev 9530)
+++ branches/branch-3.0/test/sudoku.cxx 2012-05-18 16:23:15 UTC (rev 9531)
@@ -690,7 +690,7 @@
 
   for (j = 0; j < 3; j ++)
     for (k = 0; k < 3; k ++) {
-      g = new fltk3::Group(k * GROUP_SIZE, j * GROUP_SIZE + MENU_OFFSET,
+      g = new fltk3::Group(k * GROUP_SIZE, j * GROUP_SIZE /*+ MENU_OFFSET*/,
                       GROUP_SIZE, GROUP_SIZE);
       g->box(fltk3::BORDER_BOX);
       if ((int)(j == 1) ^ (int)(k == 1)) g->color(fltk3::DARK3);
@@ -704,7 +704,7 @@
     for (k = 0; k < 9; k ++) {
       cell = new SudokuCell(k * CELL_SIZE + CELL_OFFSET +
                                 (k / 3) * (GROUP_SIZE - 3 * CELL_SIZE),
-                           j * CELL_SIZE + CELL_OFFSET + MENU_OFFSET +
+                           j * CELL_SIZE + CELL_OFFSET /*+ MENU_OFFSET*/ +
                                (j / 3) * (GROUP_SIZE - 3 * CELL_SIZE),
                            CELL_SIZE, CELL_SIZE);
       cell->callback(reset_cb);
@@ -726,7 +726,7 @@
 
   // Make the window resizable...
   resizable(grid_);
-  size_range(3 * GROUP_SIZE, 3 * GROUP_SIZE + MENU_OFFSET, 0, 0, 5, 5, 1);
+  size_range(3 * GROUP_SIZE, 3 * GROUP_SIZE /*+ MENU_OFFSET*/, 0, 0, 5, 5, 1);
 
   // Restore the previous window dimensions...
   int X, Y, W, H;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to