From 788e914d7e259b42a9b58c667e2e4d8931b86fdd Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 21 Jul 2021 20:07:13 +0000 Subject: Improved screen rendering so it runs full speed on the hardware. --- source/spec.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/spec.c b/source/spec.c index e0698c2..6cdc7c6 100644 --- a/source/spec.c +++ b/source/spec.c @@ -200,13 +200,18 @@ static void DrawScanline(int y, int sline) y = fb->height - y - 1; - for(f = 0; f < fb->width; f++) - { - FB_ADDR(fb, f, y) = coltable[border].col; - } - if (aline>=0 && alinewidth; f++) + { + FB_ADDR(fb, f, y) = coltable[border].col; + } + scr=line[aline]; for(f=0;fwidth; f++) + { + FB_ADDR(fb, f, y) = coltable[border].col; + } + } } -- cgit v1.2.3