From: sparky4 Date: Tue, 10 Nov 2015 22:09:43 +0000 (-0600) Subject: ^^ yay!! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=568a26044aca96ac8b1c98b2bb119c62c55596d8;p=16.git ^^ yay!! --- diff --git a/16.exe b/16.exe index 664643b9..af5d163a 100755 Binary files a/16.exe and b/16.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index a2e34d8c..dc3b002c 100755 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/pcxtest.exe b/pcxtest.exe index 2b33f92f..d2e447ab 100755 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/pcxtest2.exe b/pcxtest2.exe index 73cfe326..d46bc2cd 100755 Binary files a/pcxtest2.exe and b/pcxtest2.exe differ diff --git a/planrpcx.exe b/planrpcx.exe index a3c3ad64..a6eba842 100755 Binary files a/planrpcx.exe and b/planrpcx.exe differ diff --git a/scroll.exe b/scroll.exe index 0f051130..f5bd4edf 100755 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16/16render.c b/src/lib/modex16/16render.c index fdc2215e..19884408 100755 --- a/src/lib/modex16/16render.c +++ b/src/lib/modex16/16render.c @@ -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; const int py=y+page->dy; const int prw = rw/4; + int prh; //fine tuning rx+=1; @@ -44,12 +45,13 @@ void modexDrawPBufRegion (page_t *page, int x, int y, int rx, int ry, int rw, in //^^; #define PEEE rx-prw #define PE (p->pwidth) - #define PEEEE (PE*(ry)) + if(rhheight) prh = (PE*(ry-4)); + else if(rh==p->height) prh = (PE*(ry)); y=py; x=px; //printf("%d,%d p(%d,%d) r(%d,%d) rwh(%d,%d)\n", x, y, px, py, rx, ry, rw, rh); for(plane=0; plane < 4; plane++) { - i=PEEE+PEEEE; + i=PEEE+prh; modexSelectPlane(PLANE(plane-1)); for(; y < py+rh; y++) { _fmemcpy(page->data + (((page->width/4) * (y)) + ((x) / 4)), &(p->plane[plane][i]), prw); diff --git a/test.exe b/test.exe index 60cd3ffa..a475c52c 100755 Binary files a/test.exe and b/test.exe differ