X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fdos_gfx.cpp;h=268b99ae5f9393febd76d0e967ba3a385450f477;hb=3267427b850b84f59a555c07deec6656abdb776e;hp=abe38f8ea754bfc4a569d6f5de3ac39f0d934626;hpb=08c5e85e75688a487235467fc90493357ab6330d;p=16.git diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index abe38f8e..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 ///////////////////////////////////////////////////////////////////////////// // // @@ -56,20 +57,18 @@ void setvideo(/*byte mode, */short vq){ //mxSetClipRegion(0, VH+1, VW, (TILEWH*BUFFMX)); } } - -void pdump(){ - int mult=QUADWH; - 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); @@ -379,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();