X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffontgfx.c;h=2cd028cb00eec1fb770359b78b045d9f1cb2290b;hb=e8a8ba36af9d47236981affa02532faf42bf304d;hp=4fc08ee98b3b790a05a050578988751c5e2e5384;hpb=2170cf972950dffecd075a65d1f8d9a49eb82ce9;p=16.git diff --git a/src/fontgfx.c b/src/fontgfx.c old mode 100644 new mode 100755 index 4fc08ee9..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,7 +64,7 @@ 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); @@ -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);