diff src/de/mud/terminal/VDUBuffer.java @ 125:6eab98e58bed

add more 5250 config items
author Carl Byington <carl@five-ten-sg.com>
date Thu, 19 Jun 2014 08:37:44 -0700
parents 446dbcf606eb
children 071eccdff8ea
line wrap: on
line diff
--- a/src/de/mud/terminal/VDUBuffer.java	Thu Jun 19 08:32:44 2014 -0700
+++ b/src/de/mud/terminal/VDUBuffer.java	Thu Jun 19 08:37:44 2014 -0700
@@ -588,8 +588,8 @@
      * @param l line
      */
     public void setCursorPosition(int c, int l) {
-        cursorX = min(width-1, c);
-        cursorY = min(height-1, l);
+        cursorX = (c > width-1) ? width-1 : c;
+        cursorY = (l > height-1) ? height-1 : l;
     }
 
     /**