diff mde/gui/widget/layout.d @ 41:b3a6ca4516b4

The renderer now controls which parts of the window border allow resizing. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 13 May 2008 12:02:36 +0100
parents b28d7adc786b
children 8bf53e711cc7
line wrap: on
line diff
--- a/mde/gui/widget/layout.d	Thu May 08 16:05:51 2008 +0100
+++ b/mde/gui/widget/layout.d	Tue May 13 12:02:36 2008 +0100
@@ -45,7 +45,7 @@
         
         // Get all sub-widgets
         subWidgets.length = rows*cols;
-        foreach (i, inout subWidget; subWidgets) {
+        foreach (i, ref subWidget; subWidgets) {
             subWidget = window.makeWidget (data[i+3]);
         }
         
@@ -74,9 +74,9 @@
             
             // Check row sizes are valid:
             //NOTE: this could be made optional
-            foreach (i, inout w; colW)
+            foreach (i, ref w; colW)
                 if (w < colWMin[i]) w = colWMin[i];
-            foreach (i, inout h; rowH)
+            foreach (i, ref h; rowH)
                 if (h < rowHMin[i]) h = rowHMin[i];
         }
         
@@ -199,7 +199,7 @@
         
         
         // Calculate the overall minimal size, starting with the spacing:
-        mh = window.renderer.layoutSpacing;     // use temporarily
+        mh = window.renderer.layoutSpacing;     // use mh temporarily
         mw = mh * (cols - 1);
         mh *= (rows - 1);