X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffontgfx.c;h=2cd028cb00eec1fb770359b78b045d9f1cb2290b;hb=e8a8ba36af9d47236981affa02532faf42bf304d;hp=d6599e6027cc6ce7a694289daf6099eaf549e0d1;hpb=94b2c3169aa6501f14ef021317647259b831d185;p=16.git diff --git a/src/fontgfx.c b/src/fontgfx.c old mode 100644 new mode 100755 index d6599e60..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,11 @@ 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(); @@ -75,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; @@ -95,7 +97,7 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ 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);