X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffontgfx.c;h=4fc08ee98b3b790a05a050578988751c5e2e5384;hb=d280f25c9633d068fd3e106f2418e59ace6da2f1;hp=369037216a98d6425497f1f8348cca381e73c29a;hpb=01c30d5ce6ae4b971d2302561156d22dd0216db4;p=16.git diff --git a/src/fontgfx.c b/src/fontgfx.c old mode 100644 new mode 100755 index 36903721..4fc08ee9 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -31,6 +31,16 @@ void main(int argc, char near *argv[]) 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\ @@ -53,6 +63,11 @@ void main(int argc, char near *argv[]) static word chx, chy, colpee; textInit(); modexEnter(); + /* 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; @@ -60,22 +75,24 @@ void main(int argc, char near *argv[]) colpee=32; for(e=0x00; e<=0xFE; e++) { - if(chx+8>(SCREEN_WIDTH/2)-16) + if(chx+8>(screen.width/2)) { chx=0; chy+=8; sprintf(pee,"%u", colpee); - modexprint(200, 200, 1, 47, 0, &pee); + modexprint(&screen, 200, 200, 1, 47, 0, &pee); //getch(); } - modexprint(chx, chy, 1, 0, colpee, &e); + 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(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();