]> 4ch.mooo.com Git - 16.git/commitdiff
^^ yay!!
authorsparky4 <sparky4@cock.li>
Tue, 10 Nov 2015 22:09:43 +0000 (16:09 -0600)
committersparky4 <sparky4@cock.li>
Tue, 10 Nov 2015 22:09:43 +0000 (16:09 -0600)
16.exe
exmmtest.exe
pcxtest.exe
pcxtest2.exe
planrpcx.exe
scroll.exe
src/lib/modex16/16render.c
test.exe

diff --git a/16.exe b/16.exe
index 664643b971ee286560afd67cae8cdc44dd2d60fb..af5d163a8e273368f3e60ffc9ab65de20ae2edaa 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index a2e34d8ca6828c7b2e2bed5a19ecb940ce1af946..dc3b002c3188ac0c0e8fa60e5d98a1239d79aa16 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 2b33f92f6df3ef19c321cec02821a6e6dfb67180..d2e447ab34a271aab2835dc4caf7d9848d38d38e 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 73cfe3263232e6f21be515e5ea275535595396e8..d46bc2cdce72677834313823423d0b37d51c14a0 100755 (executable)
Binary files a/pcxtest2.exe and b/pcxtest2.exe differ
index a3c3ad64d2bc4dfdb6ce25f4a3344947e5fb9de0..a6eba842731bdf0acf5b1c91e53f8ff2a52c0a07 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 0f05113039aac5b7eb2770297d086fd2262844ef..f5bd4edf3fe36792ab9c72ffc7c674d18aa9a7b2 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index fdc2215e82ff0dcf7527afb4a0cd663b85106387..198844081b005924553591da69f19964e53a89a7 100755 (executable)
@@ -36,6 +36,7 @@ void modexDrawPBufRegion      (page_t *page, int x, int y, int rx, int ry, int rw, in
        const int px=x+page->dx;\r
        const int py=y+page->dy;\r
        const int prw = rw/4;\r
+       int prh;\r
 \r
        //fine tuning\r
        rx+=1;\r
@@ -44,12 +45,13 @@ void modexDrawPBufRegion    (page_t *page, int x, int y, int rx, int ry, int rw, in
        //^^;\r
        #define PEEE    rx-prw\r
        #define PE              (p->pwidth)\r
-       #define PEEEE   (PE*(ry))\r
+       if(rh<p->height) prh = (PE*(ry-4));\r
+       else if(rh==p->height) prh = (PE*(ry));\r
        y=py;\r
        x=px;\r
        //printf("%d,%d p(%d,%d) r(%d,%d) rwh(%d,%d)\n", x, y, px, py, rx, ry, rw, rh);\r
        for(plane=0; plane < 4; plane++) {\r
-               i=PEEE+PEEEE;\r
+               i=PEEE+prh;\r
                modexSelectPlane(PLANE(plane-1));\r
                for(; y < py+rh; y++) {\r
                                _fmemcpy(page->data + (((page->width/4) * (y)) + ((x) / 4)), &(p->plane[plane][i]), prw);\r
index 60cd3ffa79355253ef4cc999cd8395c7aa6f0e21..a475c52cf111728432e8e267bdfcb0478e08349f 100755 (executable)
Binary files a/test.exe and b/test.exe differ