X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fcontty.c;h=606072c72d138c2599d73a6dadbe684632e082ad;hb=9c8fab227bf5da62f78bbd3da62aa9ff941c6239;hp=9a78ca2a7bf53be4a4129823d9a7886cb72e6562;hpb=d1e8a437c1fab4535f82c4c214ec3330ac32e48d;p=bootcensus diff --git a/src/contty.c b/src/contty.c index 9a78ca2..606072c 100644 --- a/src/contty.c +++ b/src/contty.c @@ -1,3 +1,20 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #include #include #include "contty.h" @@ -158,7 +175,7 @@ static void scroll(void) /* clear the next line that will be revealed by scrolling */ new_line = start_line + NROWS - 1; - memset16(TEXT_ADDR + new_line * NCOLS, VMEM_CHAR(' ', txattr), NCOLS); + memset16(TEXT_ADDR + new_line * NCOLS * 2, VMEM_CHAR(' ', txattr), NCOLS); crtc_setstart(start_line); }