]> 4ch.mooo.com Git - 16.git/blobdiff - src/fontgfx.c
extended video initiation stuff
[16.git] / src / fontgfx.c
index 4fc08ee98b3b790a05a050578988751c5e2e5384..2cd028cb00eec1fb770359b78b045d9f1cb2290b 100755 (executable)
@@ -25,6 +25,8 @@
 //#include "lib/16text.h"\r
 #include "lib/modex16.h"\r
 \r
+global_game_variables_t gvar;\r
+\r
 void main(int argc, char near *argv[])\r
 {\r
        //JMOJI\r
@@ -62,7 +64,7 @@ IIIIIII  BBBBBBBBB    MMMM    M    MMMM\n\
 //     static byte *rosa;\r
        static word chx, chy, colpee;\r
        textInit();\r
-       modexEnter();\r
+       VGAmodeX(1, &gvar);\r
        /* setup camera and screen~ */\r
        screen = modexDefaultPage();\r
        //screen.width += (16*2);\r
@@ -95,7 +97,7 @@ IIIIIII  BBBBBBBBB    MMMM    M    MMMM\n\
        modexprintbig(&screen, 0, 0, 1, colpee, 0, "IBM");\r
 //     modexprint(0, 0, 1, 0, colpee, ROSE);\r
        getch();\r
-       modexLeave();\r
+       VGAmodeX(0, &gvar);\r
 //     rosa=malloc(sizeof(ROSE));\r
 //     (*rosa)=(byte)ROSE;\r
        printf("\n%s\n", rose);\r