summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-07-21 20:07:13 +0000
committerIan C <ianc@noddybox.co.uk>2021-07-21 20:07:13 +0000
commit788e914d7e259b42a9b58c667e2e4d8931b86fdd (patch)
tree89f7d87e600e50fdda968e251433794c35bfd99b /source
parent2596436d1b9c59d23089524a8b9a7f8c0e994b85 (diff)
Improved screen rendering so it runs full speed on the hardware.
Diffstat (limited to 'source')
-rw-r--r--source/spec.c22
1 files changed, 17 insertions, 5 deletions
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 && aline<SCRL)
{
+ for(f = 0; f < OFF_X; f++)
+ {
+ FB_ADDR(fb, f, y) = coltable[border].col;
+ }
+
+ for(f = OFF_X + 256; f < fb->width; f++)
+ {
+ FB_ADDR(fb, f, y) = coltable[border].col;
+ }
+
scr=line[aline];
for(f=0;f<TXT_W;f++)
@@ -244,6 +249,13 @@ static void DrawScanline(int y, int sline)
}
}
}
+ else
+ {
+ for(f = 0; f < fb->width; f++)
+ {
+ FB_ADDR(fb, f, y) = coltable[border].col;
+ }
+ }
}