From: sparky4 Date: Mon, 16 Jun 2014 01:11:31 +0000 (-0500) Subject: modified: 16/DOS_GFX.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7208080604e6f5d4568deaa064f590c9df5f3f42;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/dos_gfx.h --- diff --git a/16/DOS_GFX.EXE b/16/DOS_GFX.EXE index ab2b1d78..76e6018f 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 434c2ba6..8054c751 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 cd513451..c4218076 100644 --- a/16/Project 16.bfproject +++ b/16/Project 16.bfproject @@ -1,13 +1,13 @@ c2e.convert_special: 0 e2c.convert_num: 0 -openfiles: /dos/z/16/16/dos_gfx.cpp:5831:5436:1: +openfiles: /dos/z/16/16/dos_gfx.cpp:8775:7736: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: openfiles: /dos/z/16/16/lib/lib_com.h:2503:1575:0: openfiles: /dos/z/16/16/scroll.txt:5256:4537:0: -openfiles: /dos/z/16/16/project16.txt:8063:7087:0: +openfiles: /dos/z/16/16/project16.txt:8063:7058:0: openfiles: /dos/z/16/16/16.txt:0:0:0: openfiles: /dos/z/16/16/lib/x/MODEX.H:3164:2733:0: openfiles: /dos/z/16/16/lib/intro/lib.c:2412:1757:0: @@ -17,6 +17,7 @@ openfiles: /dos/z/16/16/lib/x/MXBB.ASM:559:0:0: openfiles: /dos/z/4x4_16/modex/DEMO01.PAS:2972:2048:0: openfiles: /dos/z/4x4_16/modex/DEMO07.PAS:1567:547:0: openfiles: /dos/z/16/16/lib/x/MXCR.ASM:252:0:0: +openfiles: /dos/z/16/16/scrasm/MAIN.ASM:4251:1619:0: snr_recursion_level: 0 convertcolumn_horizontally: 0 adv_open_matchname: 0 @@ -28,7 +29,7 @@ view_left_panel: 0 default_mime_type: text/plain e2c.convert_xml: 1 c2e.convert_iso: 0 -opendir: file:///dos/z/16/16/lib/x +opendir: file:///dos/z/16/16/scrasm wrap_text_default: 0 bookmarks_filename_mode: 1 ssearch_text: mxpt @@ -83,22 +84,23 @@ 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.cpp +recent_files: file:///dos/z/16/16/lib/lib_com.h 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/dos_kb.h recent_files: file:///dos/z/16/16/lib/lib_com.cpp -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/DEMO01.PAS -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/src/lib/dos_gfx.h +recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp recent_files: file:///dos/z/16/16/lib/intro/lib.c +recent_files: file:///dos/z/4x4_16/modex/DEMO01.PAS +recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS recent_files: file:///dos/z/16/16/lib/x/MXCR.ASM +recent_files: file:///dos/z/16/16/scrasm/MAIN.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 cbfa2d61..5928b6f5 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -51,7 +51,7 @@ void setvideo(/*byte mode, */short vq){ mxSetVirtualScreen(VW,BH); // mxSetVirtualScreen((640-(TILEWH*4)),(480-(TILEWH*4))); mxSetClip(true); - mxSetClipRegion(0, 0, VW, BH); + mxSetClipRegion(0, 0, VW, BH); mxPan(TILEWH*2,TILEWH*2); //mxSetClipRegion(0, VH+1, VW, (TILEWH*BUFFMX)); } @@ -245,11 +245,11 @@ short ding(int q){ #endif } - if(q==2) - #ifdef TILE - mxFillBox((rand()*TILEWH)%VW, (rand()*TILEWH)%(VH), TILEWH, TILEWH, 0, OP_SET); - #else - 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 @@ -298,6 +298,7 @@ int main(void) setvideo(1); } }*/ // else off + mxFillBox(0, 0, VW, BH, 10, OP_SET); while(1){ // conditions of screen saver while(!kbhit()){ ding(key); @@ -324,8 +325,8 @@ int main(void) mxPutPixel(0, y, 15); mxPutPixel(VW-1, y, 15); } - - getch();*/ + */ + getch(); //text box mxSetTextColor(10, OP_TRANS); //set font mxBitBlt(xpos, ypos+(TILEWH*12), SW, TILEWH*BUFFMX, 0, BS); //copy background @@ -340,38 +341,38 @@ int main(void) mxFillBox(xpos+QUADWH, ypos+QUADWH+(TILEWH*12), TILEWH*2, TILEWH*2, 9, OP_SET); //portriat~ getch(); 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()){ -// hScroll(1); -// scrolly(1); -// vScroll(1); -// delay(100); //for(int i=0;i(VW-SW-1)) || (xpos<1))delay(500); - //mxWaitRetrace(); - mxPan(TILEWH*2,TILEWH*2); - mxBitBlt(0, SH, SW, SH, xpos, ypos); + //mxWaitRetrace(); +//mxBitBlt(32, (SH+32), SW, SH, xpos, ypos); +//mxBitBlt(32, (SH+64+32), SW, SH, 32, 32); +//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! } - + // direction! } +//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' if(ch==0x1b)break; // 'ESC' } setvideo(0); - printf("wwww\nFull Buffer Virtual Resolution: %dx%d\n", VW,BH); + printf("wwww\nFull Buffer Virtual Resolution: %dx%d\n", VW,BH); printf("Virtual Resolution: %dx%d\n", VW,VH); printf("Resolution: %dx%d\n", SW,SH); printf("Mode X Library Version: %d\n", mxGetVersion()); diff --git a/16/dos_gfx.h b/16/dos_gfx.h index 231c1061..d1fe75a7 100644 --- a/16/dos_gfx.h +++ b/16/dos_gfx.h @@ -13,7 +13,7 @@ #define HGQ 56 #define TILEWH 16 #define QUADWH TILEWH/2 -#define BUFFMX 3 +#define BUFFMX 4 /*byte SIZE = 80; // Size = 40 = 1 across, 4 down // Size = 80 = 2 across, 2 down // Size = 160 = 4 across, 1 down*/