From 40396405e54fd85b7c7a23cd03a63228fc659c89 Mon Sep 17 00:00:00 2001 From: gunboy001 Date: Tue, 5 Nov 2019 16:35:48 +0100 Subject: [PATCH] fixed 1c19f11 --- ste.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ste.c b/ste.c index 0265070..cf5b143 100644 --- a/ste.c +++ b/ste.c @@ -780,9 +780,10 @@ void curUpdateRender () t.cur.off_x -= t.cur.off_x - t.cur.r_x; t.cur.r_x = 0; - } else if (t.cur.r_x >= t.cur.off_x + t.dim.x) { - t.cur.off_x += t.cur.r_x - t.cur.off_x - t.dim.x; - t.cur.r_x = t.dim.x - 1; + } else if (t.cur.r_x > t.cur.off_x + t.dim.x) { + if (t.cur.r_x == t.cur.off_x + t.dim.x) t.cur.off_x++; + else t.cur.off_x += t.cur.r_x - t.cur.off_x - t.dim.x; + t.cur.r_x = t.dim.x; } } /*--------------------------------- testing ------------------------------------*/