aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-02-01 15:23:59 +1000
committerDavid Walter Seikel2014-02-01 15:23:59 +1000
commitf041fc7d636bbe2cb523a1ae99934839cca934f8 (patch)
tree690d679c5c1cd3bb743a1f1626c6dc80092ef091
parentComment++ (diff)
downloadboxes-f041fc7d636bbe2cb523a1ae99934839cca934f8.zip
boxes-f041fc7d636bbe2cb523a1ae99934839cca934f8.tar.gz
boxes-f041fc7d636bbe2cb523a1ae99934839cca934f8.tar.bz2
boxes-f041fc7d636bbe2cb523a1ae99934839cca934f8.tar.xz
Terminal resize now does the right thing in boxes.
-rw-r--r--boxes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/boxes.c b/boxes.c
index 3c15b21..048c7c8 100644
--- a/boxes.c
+++ b/boxes.c
@@ -1628,8 +1628,11 @@ static void termSize(long extra, int *params, int count)
1628 // TODO - Double check what the maximum F3 variations can be. 1628 // TODO - Double check what the maximum F3 variations can be.
1629 if ((2 == count) && (8 < r) && (8 < c)) 1629 if ((2 == count) && (8 < r) && (8 < c))
1630 { 1630 {
1631 // FIXME - The change is not being propogated to everything properly. 1631 commandLine->Y = r;
1632 sizeViewToBox(rootBox, rootBox->X, rootBox->Y, c, r - 1); 1632 commandLine->W = c;
1633 rootBox->W = c;
1634 rootBox->H = r - 1;
1635 sizeViewToBox(rootBox, -1, -1, -1, -1);
1633 calcBoxes(rootBox); 1636 calcBoxes(rootBox);
1634 drawBoxes(rootBox); 1637 drawBoxes(rootBox);
1635 1638