X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffonttest.c;h=fcfd4d2d48210e0663a3b90f03406ec00b3d58a6;hb=d71e4ebbd3770b48eee2b2cc18288b97aad4e1e4;hp=2370806c24456fd4038b559b041c76e5e0dfc2fc;hpb=8296051f0e0bfae2fcccd45a40fd241846f36de3;p=16.git diff --git a/src/fonttest.c b/src/fonttest.c old mode 100644 new mode 100755 index 2370806c..fcfd4d2d --- a/src/fonttest.c +++ b/src/fonttest.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -29,7 +29,7 @@ void main(int argc, char near *argv[]) int i; int j; char l[16]; - char c; + char c,ct; word s, o, t, w; word addr = (word) l; textInit(); @@ -40,39 +40,48 @@ void main(int argc, char near *argv[]) printf("%d: %x:%x\n", i, romFonts[i].seg, romFonts[i].off); } - printf("*argv[1]=%d\n", *argv[1]); +// printf("*argv[1]=%d\n", *argv[1]); - printf("Character: "); - scanf("%c", &c); + printf("Font type: "); + gets(&ct); - if(*argv[1]!=1) - switch(*argv[1]) + printf("Character: "); + gets(&c); + + if(ct!=1) + switch(ct) { case 48: + printf("type 0\n"); t=0; w=14; break; case 49: + printf("type 1\n"); t=1; w=8; break; case 50: + printf("type 2\n"); t=2; w=8; break; case 51: + printf("type 3\n"); t=3; w=16; break; default: + printf("type 3\n"); t=3; w=16; break; } else { + printf("type 3\n"); t=3; - w=16; + w=16; }