]> 4ch.mooo.com Git - 16.git/commitdiff
help.... ><
authorsparky4 <sparky4@cock.li>
Fri, 12 Jun 2015 21:06:09 +0000 (16:06 -0500)
committersparky4 <sparky4@cock.li>
Fri, 12 Jun 2015 21:06:09 +0000 (16:06 -0500)
modified:   Project 16.bfproject
modified:   maptest.exe
modified:   pcxtest.exe
modified:   scroll.exe
modified:   src/lib/modex16.c
modified:   src/lib/modex16.h
modified:   src/scroll.c
modified:   test.exe
modified:   test2.exe

Project 16.bfproject
maptest.exe
pcxtest.exe
scroll.exe
src/lib/modex16.c
src/lib/modex16.h
src/scroll.c
test.exe
test2.exe

index b96899a97cd0df7c8700b68e2b1aff7112a0db56..d992d1947899035001dccf12bf66268d6cbb8505 100644 (file)
@@ -3,7 +3,7 @@ e2c.convert_num: 0
 openfiles: /dos/z/16/doc/project.txt:138:0:0:
 openfiles: /dos/z/16/src/palettec.c:179:0:0:
 openfiles: /dos/z/16/src/pcxtest.c:1431:1432:0:
-openfiles: /dos/z/16/src/scroll.c:19850:19233:0:
+openfiles: /dos/z/16/src/scroll.c:19798:19084:0:
 openfiles: /dos/z/16/src/fmemtest.c:116:0:0:
 openfiles: /dos/z/16/src/emmtest.c:732:0:0:
 openfiles: /dos/z/16/src/emsdump.c:456:0:0:
@@ -13,11 +13,11 @@ openfiles: /dos/z/16/src/test.c:0:0:0:
 openfiles: /dos/z/16/src/test2.c:0:0:0:
 openfiles: /dos/z/16/src/lib/planar.h:602:0:0:
 openfiles: /dos/z/16/src/lib/PLANAR.C:0:0:0:
-openfiles: /dos/z/16/src/lib/bitmap.c:0:0:0:
+openfiles: /dos/z/16/src/lib/bitmap.c:294:0:0:
 openfiles: /dos/z/16/src/lib/bitmap.h:257:0:0:
-openfiles: /dos/z/16/src/lib/modex16.c:22970:22527:0:
-openfiles: /dos/z/16/src/lib/modex16.h:2168:1159:0:
-openfiles: /dos/z/16/src/lib/dos_kb.c:3264:2408:1:
+openfiles: /dos/z/16/src/lib/modex16.c:23968:23029:1:
+openfiles: /dos/z/16/src/lib/modex16.h:2566:1791:0:
+openfiles: /dos/z/16/src/lib/dos_kb.c:3264:2598:0:
 openfiles: /dos/z/16/src/lib/dos_kb.h:0:0:0:
 openfiles: /dos/z/16/src/lib/mapread.c:2265:1988:0:
 openfiles: /dos/z/16/src/lib/mapread.h:584:0:0:
@@ -30,9 +30,9 @@ openfiles: /dos/z/16/src/lib/exmm/emmret.h:0:0:0:
 openfiles: /dos/z/16/src/lib/jsmn/farjsmn.c:7182:6673:0:
 openfiles: /dos/z/16/src/lib/jsmn/farjsmn.h:861:381:0:
 openfiles: /dos/z/16/src/lib/lib_head.c:0:0:0:
-openfiles: /dos/z/16/src/lib/lib_head.h:2424:2067:0:
+openfiles: /dos/z/16/src/lib/lib_head.h:2786:2219:0:
 openfiles: /dos/z/16/makefile:2533:2535:0:
-openfiles: /dos/z/16/src/lib/types.h:165:0:0:
+openfiles: /dos/z/16/src/lib/types.h:274:0:0:
 snr_recursion_level: 0
 convertcolumn_horizontally: 0
 adv_open_matchname: 0
@@ -47,7 +47,7 @@ c2e.convert_iso: 0
 opendir: file:///dos/z/16/src/lib
 wrap_text_default: 0
 bookmarks_filename_mode: 1
-ssearch_text: reg
+ssearch_text: memset
 snr_casesens: 0
 view_blocks: 1
 name: Project 16
@@ -121,13 +121,6 @@ snr_escape_chars: 0
 htmlbar_view: 0
 spell_lang: en
 ssearch_dotmatchall: 0
-searchlist: 44
-searchlist: page, x, y, w.width, w.height, &w);
-searchlist: bmp(
-searchlist: modexDrawBmp
-searchlist: CopyPageRegion
-searchlist: vga
-searchlist: VGA
 searchlist: =VGA
 searchlist: = VGA
 searchlist: FARPTR
@@ -136,6 +129,13 @@ searchlist: atoi
 searchlist: (*bmp)=bitmapLoadPcx("data/font.pcx");(*bmp)=bitmapLoadPcx("data/font.pcx");
 searchlist: modexDraws
 searchlist: reg
+searchlist: animate
+searchlist: SelectPlane
+searchlist: modexClearRegion(page_t *page, int x, int y, int w, int h, byte  color) {
+searchlist: cla
+searchlist: clear
+searchlist: trigg
+searchlist: memset
 autocomplete: 1
 outputb_show_all_output: 0
 bookmarks_show_mode: 0
index 932d217d5abb8d8cf126ee4b191515df563bcb44..75de896a178b29462b8c31cec840e5ca023a5f34 100644 (file)
Binary files a/maptest.exe and b/maptest.exe differ
index e2d598ae8eea1af5b019399472eff9a4aab0ac4e..a6bd559d0ccb3469438fb6e00b5cb1b957557654 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 42d6ff05c37d9166dd47e44508c73faa5415b09c..aa6367d680faa22b478c394dc0b0069e19c4c373 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 1ff10a1e3d02f255c77a20a82cf51d299c64bb07..9b9545299b6474860446e08f1b51d75a9ec7ab56 100644 (file)
@@ -901,7 +901,7 @@ byte far *bios_8x8_font(void)
        regs_t regs;
 \r
 /* use BIOS INT 10h AX=1130h to find font #3 (8x8) in ROM */\r
-       //memset(&regs, 0, sizeof(regs)); /* for Watcom C */\r
+       memset(&regs, 0, sizeof(regs)); /* for Watcom C */\r
        regs.w.ax = 0x1130;\r
        regs.w.bx = 0x0300;\r
        intr(0x10, &regs);\r
@@ -911,22 +911,18 @@ byte far *bios_8x8_font(void)
 
 /*****************************************************************************\r
 *****************************************************************************/\r
-void bputs(page_t *page, bitmap_t *bmp, int x, int y, const char *s)\r
+void bputs(page_t *pee, int x, int y, const char *s)\r
 {\r
        byte far *font;
-       //byte far *fontoffset;
-       //bitmap_t w;   //font bitmap wwww
+       byte far *fontoffset;
 \r
        font = bios_8x8_font();
        //printf("font=%Fp\n", font);\r
        for(; *s != '\0'; s++)\r
-       {
-//++++         (*bmp)=bitmapLoadPcx("data/font.pcx");\r
+       {\r
                //src.raster = font + 8 * (*s);
-               //bmp->width=8;
-               //w.height=8;
                //BLOODY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!111111111111!!!11!!11!111!11!!1111!!111!11!!1!!!11!11!!1!!111!11!!
-//++++         (*(bmp->data)) = (*(font + 8 * (*s)));
+//             (*(bmp->data)) = (*(font + 8 * (*s)));
 
                //printf("fontoffset=%Fp\n", font + 8 * (*s));
                //printf("*fontoffset=%s\n", *(font + 8 * (*s)));
@@ -934,8 +930,12 @@ void bputs(page_t *page, bitmap_t *bmp, int x, int y, const char *s)
                //printf("*w.data=%s\n", *(w.data));
                //blit1(&src, bmp, x, y);
 //             modexDrawSprite(page, x, y, bmp);
-               modexDrawBmp(page, x, y, bmp);
+//             modexDrawBmp(page, x, y, bmp);
+//             printf("%x\n", (*(font + 8 * (*s))));
+               //_fmemset(VGA, *(font + 8 * (*s)), _msize(font));
+               //draw text?!?! wwww
+               modexClearRegion(pee, x, y, 8, 8, 4);
                x += 8;\r
        }
-       //printf("\n");\r
+//     printf("\n");\r
 }
index f3e5e4217a17541a8f10ed99b07b43dcb7b3a9bf..b81fb36c46dc199eeaa0220b8a30e44a883246a2 100644 (file)
@@ -70,7 +70,7 @@ void modexPalUpdate0(byte *p);
 void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/);
 void modexWaitBorder();
 byte far *bios_8x8_font(void);
-void bputs(page_t *page, bitmap_t *bmp, int x, int y, const char *s);
+void bputs(page_t *pee, int x, int y, const char *s);
 
 /* -======================= Constants & Vars ==========================- */
 extern byte far*  VGA;  /* The VGA Memory */
index 174b7bab7c8d4a90d9e010bb705c1eb36d553a0d..8134a31c71759e5185d8c6c774e24add09c94105 100644 (file)
@@ -75,7 +75,7 @@ void main() {
        byte *ptr;
        byte *mappalptr;\r
        actor_t player;
-       bitmap_t font;\r
+//     bitmap_t font;\r
        //actor_t npc0;\r
 \r
 //     atexit(qclean());\r
@@ -123,7 +123,7 @@ void main() {
        /* data */\r
 //0000 printf("Total used @ before image loading:              %zu\n", oldfreemem-GetFreeSize());
        ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
-       //font = bitmapLoadPcx("data/font.pcx");
+//     font = bitmapLoadPcx("data/font.pcx");
        //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite\r
 \r
        /* create the planar buffer */\r
@@ -589,7 +589,7 @@ void main() {
        }\r
        if(player.q == (TILEWH/SPEED)+1 && player.d > 0 && (player.triggerx == 5 && player.triggery == 5)){ player.hp--; }\r
        //if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; }
-       if(keyp(0x44))  bputs(bg->page, &font, player.triggerx, player.triggery, "wwww");       //f10
+       if(keyp(0x44)){ bputs(spri->page, player.x+(TILEWH*2), player.y+(TILEWH*2), "wwww"); }  //f10
        if(keyp(25)){ pdump(bg); pdump(spri); }\r
        if(keyp(24)){ modexPalUpdate0(gpal); paloffset=0; pdump(bg); pdump(spri); }\r
        if(keyp(22)){\r
index f5790cd8a23b7ba8d7bf9e5765600ef59db0e559..ec3ea875e855426b5ac823c95775510272e3b12b 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 30b9c1cd02953718e0fd94d562f23d36276fd342..92bb6efb919f9fd126d0d09e927c2c3318e3feb2 100644 (file)
Binary files a/test2.exe and b/test2.exe differ