X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffontgfx.c;h=2cd028cb00eec1fb770359b78b045d9f1cb2290b;hb=e8a8ba36af9d47236981affa02532faf42bf304d;hp=34154f06002364ceb2930c71c2f1f39f90f58d9a;hpb=fbe125254951c226754f1445fe42cb5b42d74cbd;p=16.git diff --git a/src/fontgfx.c b/src/fontgfx.c old mode 100644 new mode 100755 index 34154f06..2cd028cb --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -25,6 +25,8 @@ //#include "lib/16text.h" #include "lib/modex16.h" +global_game_variables_t gvar; + void main(int argc, char near *argv[]) { //JMOJI @@ -62,11 +64,12 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ // static byte *rosa; static word chx, chy, colpee; textInit(); - modexEnter(); + VGAmodeX(1, &gvar); /* setup camera and screen~ */ screen = modexDefaultPage(); - screen.width += (16*2); - screen.height += (16*2); + //screen.width += (16*2); + //screen.height += (16*2); +//++++ modexShowPage(&screen); //modexprint(16, 16, 1, 15, "wwww"); //getch(); chx=0; @@ -74,7 +77,7 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ 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; @@ -90,10 +93,11 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ //modexprint(100, 100, 1, 47, 0, "wwww"); getch(); // modexprint(0, 0, 1, 0, colpee, &rose); - modexprint(&screen, 0, 0, 0, 0, colpee, &ibmlogo); +//++++ 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(); + VGAmodeX(0, &gvar); // rosa=malloc(sizeof(ROSE)); // (*rosa)=(byte)ROSE; printf("\n%s\n", rose);