X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffontgfx.c;h=d6599e6027cc6ce7a694289daf6099eaf549e0d1;hb=a37ce6ce2450c46380b8d31f7101b521d2cebfda;hp=d138cc756f05a642e4748fe92dae99e9a82aab2f;hpb=403a2afcb791925d56ed1d3cab8e02287e22464a;p=16.git diff --git a/src/fontgfx.c b/src/fontgfx.c index d138cc75..d6599e60 100644 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -22,29 +22,83 @@ #include #include #include "lib/types.h" -//#include "lib/16text.h" +//#include "lib/16text.h" #include "lib/modex16.h" void main(int argc, char near *argv[]) -{ - byte e; - word chx, chy; - textInit(); +{ + //JMOJI + static byte e; + //word ri; + byte pee[2]; + page_t screen; + static byte ibmlogo[]="IIIIIII BBBBBBBBB MMMMM MMMMM\n\ +IIIIIII BBBBBBBBBBB MMMMMM MMMMMM\n\ + III BBB BBB MMMMMM MMMMMM\n\ + III BBBBBBBBB MMMMMMM MMMMMMM\n\ + III BBBBBBBBB MMM MMMMMMM MMM\n\ + III BBB BBB MMM MMMMM MMM\n\ +IIIIIII BBBBBBBBBBB MMMM MMM MMMM\n\ +IIIIIII BBBBBBBBB MMMM M MMMM\n\ +"; + static byte rose[]=" :. ,..\n\ + .' :~.':_.,\n\ + .' ::.::'.'\n\ + : ::' .:\n\ + `.: .: .:/\n\ + `::--.:'.::'\n\ + |. _:===-'\n\ + / /\n\ + ,---.---. __,','\n\ + (~`. \ ) )','.,---..\n\ + `v`\ | ,' .-'.:,'_____ `.\n\ + )|/.-~.--~~--. ~~~-. \ \n\ + _/-'_.-~ ""---.._`.|\n\ + _.-~~_.-~ ""'\n\ + _..--~~_.(~~\n\ + __...---~~~_..--~~\n\ +,'___...---~~~\n\ +"; +// static byte *rosa; + static word chx, chy, colpee; + textInit(); modexEnter(); - //modexprint(16, 16, 1, 15, "wwww"); - //getch(); - chx=0; - chy=0; - for(e='!'; e<='~'; e++) - { - modexprint(chx, chy, 1, 15, &e); - chx+=8; - if(chx+8>=SCREEN_WIDTH) - { - chx=0; - chy+=8; - } - } - getch(); - modexLeave(); + /* setup camera and screen~ */ + screen = modexDefaultPage(); + screen.width += (16*2); + screen.height += (16*2); +//++++ modexShowPage(&screen); + //modexprint(16, 16, 1, 15, "wwww"); + //getch(); + chx=0; + chy=0; + colpee=32; + for(e=0x00; e<=0xFE; e++) + { + if(chx+8>(SCREEN_WIDTH/2)-16) + { + chx=0; + chy+=8; + sprintf(pee,"%u", colpee); + modexprint(&screen, 200, 200, 1, 47, 0, &pee); + //getch(); + } + modexprint(&screen, chx, chy, 1, 0, colpee, &e); + chx+=9; + colpee++; + if(colpee>=32+24) colpee=32; + } + //modexprint(100, 100, 1, 47, 0, "wwww"); + getch(); +// modexprint(0, 0, 1, 0, colpee, &rose); +//++++ modexprint(&screen, 0, 0, 0, 0, colpee, &ibmlogo); + modexprintbig(&screen, 0, 0, 1, colpee, 0, "IBM"); +// modexprint(0, 0, 1, 0, colpee, ROSE); + getch(); + modexLeave(); +// rosa=malloc(sizeof(ROSE)); +// (*rosa)=(byte)ROSE; + printf("\n%s\n", rose); + //printf("\nh=%d\n", '8'); +// printf("\n%c\n", e); }