mirror of
https://github.com/datajerk/c2d.git
synced 2024-09-24 22:57:31 +00:00
added page2text, fixed 40 col bug in text2page
This commit is contained in:
parent
b41676bab8
commit
2bc0752f9d
BIN
bin/page2text
BIN
bin/page2text
Binary file not shown.
Binary file not shown.
@ -22,10 +22,7 @@ int main()
|
||||
for(i=0;i<24;i++) {
|
||||
for(j=0;j<40;j++) {
|
||||
c = getchar();
|
||||
if(++count > 1024) {
|
||||
fprintf(stderr,"input size > 1024\n\n");
|
||||
return 1;
|
||||
}
|
||||
count++;
|
||||
screen[linemap[i]][j] = c & 0x7F;
|
||||
}
|
||||
if((i + 1) % 3 == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user