aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AndroidManifest.xml2
-rw-r--r--src/de/mud/terminal/vt320.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 97c80df..f879507 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.connectbot"
android:versionName="1.7-dev"
- android:versionCode="255">
+ android:versionCode="256">
<application
android:icon="@drawable/icon"
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);