From c1a0571ea521ea3cc002f5920851ba43211ed8f0 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 1 Apr 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-04-01 --- carrera/screen.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/carrera/screen.c b/carrera/screen.c index c35f3acacd14964d408ab269a1401c4a58b2296a..538d04a12711ffebeb7bdaa9c70514c66bb01dc9 100644 --- a/carrera/screen.c +++ b/carrera/screen.c @@ -46,8 +46,8 @@ GBitmap gscreen = 0, 512, 3, - { 0, 0, 1599, 1239 }, - { 0, 0, 1599, 1239 }, + { 0, 0, 1600, 1240 }, + { 0, 0, 1600, 1240 }, 0 }; @@ -276,6 +276,7 @@ static void screenputc(char *buf) { int pos; + Rectangle r; switch(buf[0]) { case '\n': @@ -293,8 +294,14 @@ screenputc(char *buf) cursor.x += pos*w; break; case '\b': - if(cursor.x-w >= 0) + if(cursor.x-w >= 0){ + r.min.x = cursor.x-w; + r.max.x = cursor.x; + r.min.y = cursor.y; + r.max.y = cursor.y+defont0.height; + gbitblt(&gscreen, r.min, &gscreen, r, Zero); cursor.x -= w; + } break; default: if(cursor.x >= window.max.x-w)