]> 4ch.mooo.com Git - 16.git/blobdiff - src/fontgfx.c
ok
[16.git] / src / fontgfx.c
old mode 100644 (file)
new mode 100755 (executable)
index 34154f0..2cd028c
@@ -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,11 +64,12 @@ 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
-       screen.height += (16*2);\r
+       //screen.width += (16*2);\r
+       //screen.height += (16*2);\r
+//++++ modexShowPage(&screen);\r
        //modexprint(16, 16, 1, 15, "wwww");\r
        //getch();\r
        chx=0;\r
@@ -74,7 +77,7 @@ IIIIIII  BBBBBBBBB    MMMM    M    MMMM\n\
        colpee=32;\r
        for(e=0x00; e<=0xFE; e++)\r
        {\r
-               if(chx+8>(SCREEN_WIDTH/2)-16)\r
+               if(chx+8>(screen.width/2))\r
                {\r
                        chx=0;\r
                        chy+=8;\r
@@ -90,10 +93,11 @@ IIIIIII  BBBBBBBBB    MMMM    M    MMMM\n\
        //modexprint(100, 100, 1, 47, 0, "wwww");\r
        getch();\r
 //     modexprint(0, 0, 1, 0, colpee, &rose);\r
-       modexprint(&screen, 0, 0, 0, 0, colpee, &ibmlogo);\r
+//++++ modexprint(&screen, 0, 0, 0, 0, colpee, &ibmlogo);\r
+       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