From: sparky4 Date: Fri, 23 Oct 2015 22:06:35 +0000 (-0500) Subject: ==YAY! I GOT IT WORKING THE PLANAR BUFFER RENDERING== X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=b9a83c612a7692ac68a527fcf1198deffe79e0d9;p=16.git ==YAY! I GOT IT WORKING THE PLANAR BUFFER RENDERING== --- diff --git a/16.exe b/16.exe index fd885dde..3acabf42 100755 Binary files a/16.exe and b/16.exe differ diff --git a/bakapi.exe b/bakapi.exe index 6dba52dc..3345303b 100755 Binary files a/bakapi.exe and b/bakapi.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index 79caf96a..5a9b4478 100755 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/fontgfx.exe b/fontgfx.exe index 83e44164..865b0276 100755 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/maptest.exe b/maptest.exe index 5bfafc54..c6f043ed 100755 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/palettec.exe b/palettec.exe index 61d74dec..5e59028f 100755 Binary files a/palettec.exe and b/palettec.exe differ diff --git a/palettel.exe b/palettel.exe index a73ea7cb..2c1b661f 100755 Binary files a/palettel.exe and b/palettel.exe differ diff --git a/pcxtest.exe b/pcxtest.exe index 267bb01a..9de5228a 100755 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/pcxtest2.exe b/pcxtest2.exe index b98f8412..86688bb6 100755 Binary files a/pcxtest2.exe and b/pcxtest2.exe differ diff --git a/planrpcx.exe b/planrpcx.exe index 406bc4f8..6434db38 100755 Binary files a/planrpcx.exe and b/planrpcx.exe differ diff --git a/scroll.exe b/scroll.exe index 8720adba..77521e4e 100755 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index cbf4df05..70c8eb5a 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -399,11 +399,11 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) { int plane; int px, py, i; - byte *buff; + byte near *buff; px=x; py=y; - buff = _fmalloc(p->pwidth+1); + buff = _nmalloc(p->pwidth+1); // TODO Make this fast. It's SLOOOOOOW // for(plane=0; plane < 4; plane++) { // i=0; @@ -434,7 +434,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) x=px; y=py; } - _ffree(buff); + _nfree(buff); } void diff --git a/src/planrpcx.c b/src/planrpcx.c index d3873ed9..1eafcd6c 100755 --- a/src/planrpcx.c +++ b/src/planrpcx.c @@ -82,7 +82,9 @@ baka = 1; // oldDrawBmp(VGA, 20, 20, &bmp, 1); //0000 modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp); // modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp); - DrawPBuf(&gvar.video.page[0], 0, 0, p, 0); + for(i=0; i<100 ;i++) { + DrawPBuf(&gvar.video.page[0], 0, 0, p, 0); + } t1 = (*clockw-start) /18.2; while(!kbhit()) { diff --git a/test.exe b/test.exe index 29c00a47..c7ebae76 100755 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index b214c83e..99304e64 100755 Binary files a/test2.exe and b/test2.exe differ