# HG changeset patch # User Carl Byington # Date 1403191703 25200 # Node ID 446dbcf606eb8b56c6b27bfc7b25fcf536b1a6b2 # Parent 52b1d0ee27b1ab67653b705508e0a1d339b34b0e add more 5250 config items; ignore drawing outside the screen diff -r 52b1d0ee27b1 -r 446dbcf606eb res/xml/host_prefs.xml --- a/res/xml/host_prefs.xml Wed Jun 18 19:00:34 2014 -0700 +++ b/res/xml/host_prefs.xml Thu Jun 19 08:28:23 2014 -0700 @@ -140,6 +140,12 @@ android:summary="@string/hostpref_emulation_summary" android:singleLine="true" /> + + + + + + + + + + = bufSize) || (c >= width)) return; // ignore characters outside our buffer + charArray[ll][c] = ch; + charAttributes[ll][c] = attributes; if (l < height) update[l + 1] = true; @@ -586,8 +588,8 @@ * @param l line */ public void setCursorPosition(int c, int l) { - cursorX = c; - cursorY = l; + cursorX = min(width-1, c); + cursorY = min(height-1, l); } /** diff -r 52b1d0ee27b1 -r 446dbcf606eb src/org/tn5250j/framework/tn5250/ScreenPlanes.java --- a/src/org/tn5250j/framework/tn5250/ScreenPlanes.java Wed Jun 18 19:00:34 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/ScreenPlanes.java Thu Jun 19 08:28:23 2014 -0700 @@ -27,8 +27,6 @@ import static org.tn5250j.TN5250jConstants.*; -import java.util.Properties; - public class ScreenPlanes { private final Screen5250 scr;