X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fdos_gfx.cpp;h=268b99ae5f9393febd76d0e967ba3a385450f477;hb=3267427b850b84f59a555c07deec6656abdb776e;hp=5928b6f571316f6535d6dfb9385aa0279c345bab;hpb=7208080604e6f5d4568deaa064f590c9df5f3f42;p=16.git diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index 5928b6f5..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+64+32), SW, SH, 32, 32); +//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); //} 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(TILEWH*2, (SH+64+32), SW, SH, TILEWH*2, TILEWH*2); +//mxBitBlt(32, (SH+64+32), SW, SH, xpos, ypos); +//mxBitBlt(TILEWH*2, (SH+64+32), SW, SH, TILEWH*2, TILEWH*2); } ch=getch(); if(ch==0x71)break; // 'q'