summaryrefslogtreecommitdiff
path: root/source/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/spec.c')
-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;
+ }
+ }
}