From 87ea686c70ca6afa51fd829ba2d334a5a082e524 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 2 Sep 2006 07:25:56 +0000 Subject: [PATCH] Fix width calculation for clreol() --- src/conio/ciolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/ciolib.c b/src/conio/ciolib.c index 1ee07ef4c4..ea7a7eae71 100644 --- a/src/conio/ciolib.c +++ b/src/conio/ciolib.c @@ -699,7 +699,7 @@ CIOLIBEXPORT void CIOLIBCALL ciolib_clreol(void) ciolib_gettextinfo(&ti); - width=ti.winright-ti.curx+1; + width=ti.winright-ti.winleft+1-ti.curx+1; height=1; buf=(unsigned char *)alloca(width*height*2); for(i=0;i<width*height*2;) { -- GitLab