X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fdos_gfx.cpp;h=268b99ae5f9393febd76d0e967ba3a385450f477;hb=3267427b850b84f59a555c07deec6656abdb776e;hp=aa4a61d9b49b69c7667e481b0d39688f92442dd3;hpb=64264f5a322853c8e9c4b96b4d2366303b60f050;p=16.git diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index aa4a61d9..268b99ae 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -1,7 +1,8 @@ //DOS Graphics thingy by sparky4 licence GPL v2 //a special thanks to everyone to release source code for mode X /*src\lib\*/ -#include "dos_gfx.h" +#include "dos_gfx.h" +//#include "lib\modex16.h" //____ int old_mode; //color ‚Ä‚·‚Æ @@ -9,7 +10,7 @@ short gq = LGQ; //‚Ä‚·‚Æ short bakax = 0, bakay = 0; -syte xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0; +word xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0; byte coor; byte *vga = (byte *) MK_FP(0xA000, 0); @@ -19,7 +20,7 @@ byte *vga = (byte *) MK_FP(0xA000, 0); * to be included. */ #define TESTING -#define TILE +//#define TILE ///////////////////////////////////////////////////////////////////////////// // // @@ -57,6 +58,18 @@ void setvideo(/*byte mode, */short vq){ } } +void pdump(){ + int mult=(QUADWH)/2; + int palq=(mult)*16; + int palcol=0; + for(int paly=0; paly(VW-SW-1)) || (xpos<1))delay(500); //mxWaitRetrace(); -//mxBitBlt(32, (SH+32), SW, SH, xpos, ypos); +//mxBitBlt(32, (SH+32), SW, SH, xpos, ypos); mxBitBlt(TILEWH*2, (SH+64+32), SW, SH, TILEWH*2, TILEWH*2); //xpos=ypos=TILEWH*2; mxPan(32,32); @@ -364,7 +383,7 @@ mxPan(32,32); if( (xpos>(VW-SW-1)) || (xpos<1)){xdir=-xdir;} if( (ypos>(BH-SH-1)) || (ypos<1)){ydir=-ydir;} // { Hit a boundry, change // direction! } -//mxBitBlt(32, (SH+64+32), SW, SH, xpos, ypos); +//mxBitBlt(32, (SH+64+32), SW, SH, xpos, ypos); //mxBitBlt(TILEWH*2, (SH+64+32), SW, SH, TILEWH*2, TILEWH*2); } ch=getch();