From 53023daeee7989ac304a669002273b537c492ea1 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Sat, 29 Sep 2012 14:47:04 +0100 Subject: Fix offby1 in VPA sequence (fixes issue 582) --- src/de/mud/terminal/vt320.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/de/mud/terminal') diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index 80f3856..35f0290 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -2590,7 +2590,7 @@ public void setScreenSize(int c, int r, boolean broadcast) { debug("ESC [ " + DCEvars[0] + " C"); break; case 'd': // CVA - R = DCEvars[0]; + R = DCEvars[0] - 1; if (R < 0) R = 0; else if (R >= height) -- cgit v1.2.3