]> 4ch.mooo.com Git - 16.git/commitdiff
hmmm
authorsparky4 <sparky4@cock.li>
Thu, 29 Oct 2015 16:36:01 +0000 (11:36 -0500)
committersparky4 <sparky4@cock.li>
Thu, 29 Oct 2015 16:36:01 +0000 (11:36 -0500)
15 files changed:
16.exe
bakapi.exe
exmmtest.exe
fontgfx.exe
maptest.exe
palettec.exe
palettel.exe
pcxtest.exe
pcxtest2.exe
planrpcx.exe
scroll.exe
src/lib/modex16.c
src/lib/scroll16.c
test.exe
test2.exe

diff --git a/16.exe b/16.exe
index 1f9dd447073d5a821ca3a3d97dc2be1328de22b8..cc49d27686845d81c0702b6939c0c16c6eab549e 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 3d0f96e945002e073a7ed6171c06d0df51b9e871..9d2d657c1d88ab5576541ddea9cf87168752875f 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index d98194bf52a21a1ff27d3340f32ca2fba4d49683..f810b5d40ca4254be5ca7ef677418d42fb57f303 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 481b07dfa694cc9e74a11795bbd3403185d0a3b0..cb2a34a5c9cebc3a20ba114e965cba79111105ca 100755 (executable)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index dbff0af5e669e944abedbccf5ed9f76e4ccfab17..fa23696e093d5315067d7c57a8fdb56bb2a26335 100755 (executable)
Binary files a/maptest.exe and b/maptest.exe differ
index e928b737fda4681a06a281fccbc416a6661159e6..bec018440423fadd11a7264748dd40009db892f0 100755 (executable)
Binary files a/palettec.exe and b/palettec.exe differ
index 873d452c64e714d72c575d55a9d470d942005202..7e0cdaf45655c9965cc7b7db7615475ac35f83aa 100755 (executable)
Binary files a/palettel.exe and b/palettel.exe differ
index 688844cc803d0c038ee6cea9fc2e33fe1d67d05a..1898c3e1d89af0aadda6282f520ad10adccfd623 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index a5f58aa7426dda622dcdf42efd645693c2da9de3..682026034f978f9849846c7e839383e48ea717c0 100755 (executable)
Binary files a/pcxtest2.exe and b/pcxtest2.exe differ
index 725a03bc48d5b3447041345d2680707cd5c3cd05..3088759c3c48d8ec18b214c356ea796db9d5f235 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 7d64ca84cd943c205a1a4577e90ca3feff108080..0866a9fd7dc5beaf4858638c0856a27ba6abcbb1 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index fe358fcee744b89a9eb8bf272d7367271f5376e8..3c0a2ae828633291bc748025f362c0b17d599176 100755 (executable)
@@ -401,11 +401,12 @@ modexClearRegion(page_t *page, int x, int y, int w, int h, byte  color) {
 void modexDrawPBufRegion       (page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *p, boolean sprite)\r
 {\r
        int plane;\r
-       int px, py, i;\r
-       px=x;\r
-       py=y;\r
+       //const int px, py;\r
+       int i;\r
+       const int px=x-page->dx;\r
+       const int py=y-page->dy;\r
        for(plane=0; plane < 4; plane++) {\r
-               i=(rx/4)+((rx/4)*ry);\r
+               i=(rx/4)+((p->pwidth)*ry);\r
                modexSelectPlane(PLANE(plane+x));\r
                for(; y < py+rh; y++) {\r
                        //for(px=0; px < p->width; px++) {\r
@@ -426,10 +427,10 @@ void
 DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, boolean sprite)\r
 {\r
        int plane;\r
-       int px, py, i;\r
+       int i;\r
 //     byte near *buff;\r
-       px=x;\r
-       py=y;\r
+       const int px=x;\r
+       const int py=y;\r
 //     buff = _nmalloc(p->pwidth+1);\r
        // TODO Make this fast.  It's SLOOOOOOW\r
 //     for(plane=0; plane < 4; plane++) {\r
index ac883cba0bf6e367fd59abe53ae997f643435789..a60d13ea7e80821531e63b8d471b30cd336631b4 100755 (executable)
@@ -504,6 +504,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
                                //cannot print number value du to it being slow as bakapee
 #else
 #ifdef BMPTYPE
+                               modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)*2);
                                //modexDrawPBufRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data), 0);
 #else
                                modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
index 1d32558c679c77a7031aa1234e4c3bd5a61a0bc6..5a8f2b6b6bea8498502f91c08bce56639dc61844 100755 (executable)
Binary files a/test.exe and b/test.exe differ
index 27bb151780975f2cbbf4021cdc6451171554c4c7..795e393f21210576e6dcb67d256413c3197603e8 100755 (executable)
Binary files a/test2.exe and b/test2.exe differ