OSDN Git Service

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 1f9dd44..cc49d27 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 3d0f96e..9d2d657 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index d98194b..f810b5d 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 481b07d..cb2a34a 100755 (executable)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index dbff0af..fa23696 100755 (executable)
Binary files a/maptest.exe and b/maptest.exe differ
index e928b73..bec0184 100755 (executable)
Binary files a/palettec.exe and b/palettec.exe differ
index 873d452..7e0cdaf 100755 (executable)
Binary files a/palettel.exe and b/palettel.exe differ
index 688844c..1898c3e 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index a5f58aa..6820260 100755 (executable)
Binary files a/pcxtest2.exe and b/pcxtest2.exe differ
index 725a03b..3088759 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 7d64ca8..0866a9f 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index fe358fc..3c0a2ae 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 ac883cb..a60d13e 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 1d32558..5a8f2b6 100755 (executable)
Binary files a/test.exe and b/test.exe differ
index 27bb151..795e393 100755 (executable)
Binary files a/test2.exe and b/test2.exe differ