]> 4ch.mooo.com Git - 16.git/blobdiff - 16/dos_gfx.cpp
wwww inputtest works good~
[16.git] / 16 / dos_gfx.cpp
index 7e3327b531019f22c7c3c3cdae8b180e3ea27c74..268b99ae5f9393febd76d0e967ba3a385450f477 100644 (file)
@@ -1,7 +1,8 @@
 //DOS Graphics thingy by sparky4 licence GPL v2\r
 //a special thanks to everyone to release source code for mode X\r
 /*src\lib\*/\r
-#include "dos_gfx.h"\r
+#include "dos_gfx.h"
+//#include "lib\modex16.h" //____\r
 \r
 int old_mode;\r
 //color \82Ä\82·\82Æ\r
@@ -9,7 +10,7 @@ short gq = LGQ;
 \r
 //\82Ä\82·\82Æ\r
 short bakax = 0, bakay = 0;\r
-syte xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0;\r
+word xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0;\r
 byte coor;\r
 \r
 byte *vga = (byte *) MK_FP(0xA000, 0);\r
@@ -284,7 +285,9 @@ short ding(int q){
  */\r
 \r
 int main(void)\r
-               {\r
+               {
+               //bitmap_t bmp; //____
+               //bmp = modexLoadPcx("chikyuu.pcx"); //____\r
                short key,d,xpos,ypos,xdir,ydir;\r
                int ch=0x0;\r
                // main variables\r
@@ -294,7 +297,10 @@ int main(void)
                ypos=TILEWH*2;\r
                xdir=1;\r
                ydir=1;\r
-               setvideo(1);\r
+               setvideo(1);
+               //modexPalUpdate(bmp.palette); //____
+               //modexDrawBmp(VGA, 0, 0, &bmp, 0); //____
+               //getch(); //____\r
 // screen savers\r
 \r
 /*while(d!=0){ // on!\r