mirror of
https://github.com/datajerk/c2d.git
synced 2024-06-15 18:29:29 +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(i=0;i<24;i++) {
|
||||||
for(j=0;j<40;j++) {
|
for(j=0;j<40;j++) {
|
||||||
c = getchar();
|
c = getchar();
|
||||||
if(++count > 1024) {
|
count++;
|
||||||
fprintf(stderr,"input size > 1024\n\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
screen[linemap[i]][j] = c & 0x7F;
|
screen[linemap[i]][j] = c & 0x7F;
|
||||||
}
|
}
|
||||||
if((i + 1) % 3 == 0)
|
if((i + 1) % 3 == 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user