diff options
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/mud/terminal/vt320.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index 1ebc98c..a09deff 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -1778,7 +1778,10 @@ public void setScreenSize(int c, int r, boolean broadcast) { if (isWide) { if (C >= columns - 1) { C = 0; - R++; + if (R == getBottomMargin() || R == rows - 1) + insertLine(R, 1, SCROLL_UP); + else + R++; } insertChar(C++, R, c, attributes | FULLWIDTH); insertChar(C, R, ' ', attributes | FULLWIDTH); @@ -1788,7 +1791,10 @@ public void setScreenSize(int c, int r, boolean broadcast) { if (isWide) { if (C >= columns - 1) { C = 0; - R++; + if (R == getBottomMargin() || R == rows - 1) + insertLine(R, 1, SCROLL_UP); + else + R++; } putChar(C++, R, c, attributes | FULLWIDTH); putChar(C, R, ' ', attributes | FULLWIDTH); |