From: sparky4 Date: Fri, 13 Jun 2014 20:32:31 +0000 (-0500) Subject: modified: 16/DOS_GFX.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=ea28213f8d38c309e28cd61b2cc9f53a6758f4e2;hp=b50a0eb714c64dee65050539243e02ef2aa308b5;p=16.git modified: 16/DOS_GFX.EXE modified: 16/DOS_GFX.OBJ modified: 16/Project 16.bfproject modified: 16/dos_gfx.cpp modified: 16/scrasm/CONSTANT.INC modified: 16/scrasm/MAIN.OBJ modified: 16/scrasm/SCROLL.EXE --- diff --git a/16/DOS_GFX.EXE b/16/DOS_GFX.EXE index d4df1da3..ab2b1d78 100644 Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ diff --git a/16/DOS_GFX.OBJ b/16/DOS_GFX.OBJ index f17a0b16..434c2ba6 100644 Binary files a/16/DOS_GFX.OBJ and b/16/DOS_GFX.OBJ differ diff --git a/16/Project 16.bfproject b/16/Project 16.bfproject index 378d9de2..cd513451 100644 --- a/16/Project 16.bfproject +++ b/16/Project 16.bfproject @@ -1,7 +1,7 @@ c2e.convert_special: 0 e2c.convert_num: 0 -openfiles: /dos/z/16/16/dos_gfx.cpp:1620:647:1: -openfiles: /dos/z/16/16/dos_gfx.h:665:373:0: +openfiles: /dos/z/16/16/dos_gfx.cpp:5831:5436:1: +openfiles: /dos/z/16/16/dos_gfx.h:665:285:0: openfiles: /dos/z/16/16/dos_kb.c:1039:46:0: openfiles: /dos/z/16/16/dos_kb.h:23:0:0: openfiles: /dos/z/16/16/lib/lib_com.cpp:0:0:0: @@ -82,23 +82,23 @@ recent_files: file:///dos/z/4x4_16/!/c/TUT10.C recent_files: file:///dos/z/16/16/lib/x/MXVS.ASM recent_files: file:///dos/z/16/16/lib/x/MAKEFILE recent_files: file:///dos/z/16/16/lib/x/MODEX.DEF -recent_files: file:///dos/z/16/16/dos_gfx.h recent_files: file:///dos/z/16/16/dos_gfx.cpp -recent_files: file:///dos/z/16/16/dos_kb.c +recent_files: file:///dos/z/16/16/dos_gfx.h recent_files: file:///dos/z/16/16/dos_kb.h +recent_files: file:///dos/z/16/16/dos_kb.c recent_files: file:///dos/z/16/16/lib/lib_com.cpp -recent_files: file:///dos/z/16/16/16.txt recent_files: file:///dos/z/16/16/lib/lib_com.h recent_files: file:///dos/z/16/16/scroll.txt recent_files: file:///dos/z/16/16/project16.txt +recent_files: file:///dos/z/16/16/16.txt recent_files: file:///dos/z/16/16/lib/x/MODEX.H -recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS -recent_files: file:///dos/z/16/16/lib/x/MXBB.ASM -recent_files: file:///dos/z/16/src/lib/dos_gfx.h recent_files: file:///dos/z/4x4_16/modex/DEMO01.PAS -recent_files: file:///dos/z/16/16/lib/x/MXCR.ASM -recent_files: file:///dos/z/16/16/lib/intro/lib.c recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp +recent_files: file:///dos/z/16/src/lib/dos_gfx.h +recent_files: file:///dos/z/16/16/lib/x/MXBB.ASM +recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS +recent_files: file:///dos/z/16/16/lib/intro/lib.c +recent_files: file:///dos/z/16/16/lib/x/MXCR.ASM snr_replacetype: 0 savedir: file:///dos/z/16/16 spell_check_default: 1 diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index 52e259db..cbfa2d61 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -19,7 +19,7 @@ byte *vga = (byte *) MK_FP(0xA000, 0); * to be included. */ #define TESTING -//#define TILE +#define TILE ///////////////////////////////////////////////////////////////////////////// // // @@ -245,7 +245,12 @@ short ding(int q){ #endif } - if(q==2) mxPutPixel(rand()%VW, rand()%(VH), 0); + if(q==2) + #ifdef TILE + mxFillBox((rand()*TILEWH)%VW, (rand()*TILEWH)%(VH), TILEWH, TILEWH, 0, OP_SET); + #else + mxPutPixel(rand()%VW, rand()%(VH), 0); + #endif if(q==16) mxPutPixel(rand()%VW, rand()%(VH), 0); if(q==2||q==4||q==16){ bakax = rand()%3; bakay = rand()%3; } //random 3 switch gq++; @@ -272,7 +277,7 @@ int main(void) int ch=0x0; // main variables d=4; // switch variable - key=4; // default screensaver number + key=2; // default screensaver number xpos=TILEWH*2; ypos=TILEWH*2; xdir=1; @@ -299,7 +304,7 @@ int main(void) } //end of screen savers //doTest(); - for (int x = 0; x < VW; ++x) +/* for (int x = 0; x < VW; ++x) { mxPutPixel(x, 0, 15); mxPutPixel(x, SH-1, 15); @@ -320,11 +325,11 @@ int main(void) mxPutPixel(VW-1, y, 15); } - getch(); + getch();*/ //text box mxSetTextColor(10, OP_TRANS); //set font - mxBitBlt(xpos, ypos+(TILEWH*12), 320, TILEWH*BUFFMX, 0, BS); //copy background - mxFillBox(xpos, ypos+(TILEWH*12), 320, TILEWH*BUFFMX, 0, OP_SET); // background for text box + mxBitBlt(xpos, ypos+(TILEWH*12), SW, TILEWH*BUFFMX, 0, BS); //copy background + mxFillBox(xpos, ypos+(TILEWH*12), SW, TILEWH*BUFFMX, 0, OP_SET); // background for text box //+(QUADWH*6) mxOutText(xpos+1, ypos+SH-48, "========================================"); mxOutText(xpos+1, ypos+SH-40, "| |Chikyuu:$line1"); @@ -334,7 +339,7 @@ int main(void) mxOutText(xpos+1, ypos+SH-8, "========================================"); mxFillBox(xpos+QUADWH, ypos+QUADWH+(TILEWH*12), TILEWH*2, TILEWH*2, 9, OP_SET); //portriat~ getch(); - mxBitBlt(0, BS, 320, TILEWH*BUFFMX, xpos, ypos+(TILEWH*12)); //copy background + mxBitBlt(0, BS, SW, TILEWH*BUFFMX, xpos, ypos+(TILEWH*12)); //copy background //mxBitBlt(0, (TILEWH*12)+1, 320, TILEWH*3, 0, 0); getch(); while(!kbhit()){ @@ -345,17 +350,21 @@ int main(void) //for(int i=0;i(VW-SW-1)) || (xpos<1))delay(500); - mxWaitRetrace(); + //mxWaitRetrace(); + mxPan(TILEWH*2,TILEWH*2); + mxBitBlt(0, SH, SW, SH, xpos, ypos); //} if( (xpos>(VW-SW-1)) || (xpos<1)){xdir=-xdir;} if( (ypos>(BH-SH-1)) || (ypos<1)){ydir=-ydir;} // { Hit a boundry, change - // direction! } + // direction! } + } ch=getch(); if(ch==0x71)break; // 'q' diff --git a/16/scrasm/CONSTANT.INC b/16/scrasm/CONSTANT.INC index 02ce404b..a36b7783 100644 --- a/16/scrasm/CONSTANT.INC +++ b/16/scrasm/CONSTANT.INC @@ -19,7 +19,7 @@ ALL_DRAW_BITS EQU 0FF00h+BIT_MASK SQUARE_WIDTH EQU 16 SQUARE_HEIGHT EQU 16 SCREEN_WIDTH EQU 320 -SCREEN_HEIGHT EQU 240 +SCREEN_HEIGHT EQU 200 VIRTUAL_WIDTH EQU 352 VIRTUAL_HEIGHT EQU 240 @@ -124,4 +124,3 @@ kDELETE EQU 166 kF11 EQU 174 kF12 EQU 176 - \ No newline at end of file diff --git a/16/scrasm/MAIN.OBJ b/16/scrasm/MAIN.OBJ index ff612818..bd5cae18 100644 Binary files a/16/scrasm/MAIN.OBJ and b/16/scrasm/MAIN.OBJ differ diff --git a/16/scrasm/SCROLL.EXE b/16/scrasm/SCROLL.EXE index 8181acf1..ac5db065 100644 Binary files a/16/scrasm/SCROLL.EXE and b/16/scrasm/SCROLL.EXE differ