fixed 1c19f11

This commit is contained in:
Alessandro Mauri 2019-11-05 16:35:48 +01:00
parent 8efd7c3fbd
commit 40396405e5

7
ste.c
View File

@ -780,9 +780,10 @@ void curUpdateRender ()
t.cur.off_x -= t.cur.off_x - t.cur.r_x; t.cur.off_x -= t.cur.off_x - t.cur.r_x;
t.cur.r_x = 0; t.cur.r_x = 0;
} else if (t.cur.r_x >= t.cur.off_x + t.dim.x) { } 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; if (t.cur.r_x == t.cur.off_x + t.dim.x) t.cur.off_x++;
t.cur.r_x = t.dim.x - 1; else t.cur.off_x += t.cur.r_x - t.cur.off_x - t.dim.x;
t.cur.r_x = t.dim.x;
} }
} }
/*--------------------------------- testing ------------------------------------*/ /*--------------------------------- testing ------------------------------------*/