]> 4ch.mooo.com Git - 16.git/commitdiff
==YAY! I GOT IT WORKING THE PLANAR BUFFER RENDERING==
authorsparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 22:06:35 +0000 (17:06 -0500)
committersparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 22:06:35 +0000 (17:06 -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/planrpcx.c
test.exe
test2.exe

diff --git a/16.exe b/16.exe
index fd885ddec7de9a400a68212a4751ff83dec83fed..3acabf4230cac3627a0f35718239ca079b0f067f 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 6dba52dcb80cacdad5cd8bb27250f653807543a0..3345303bfb91251024110c92759bc644f7b0b393 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index 79caf96afb437a6b4a04cce44c215e7640dc1f0e..5a9b4478379133ac183ef060f30af8ea9c4afae3 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 83e44164eca55629552673df45bb0781d1cdfa95..865b0276e2965d0098e6f70fd9ef9dd19e7ed421 100755 (executable)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index 5bfafc54f91139f3b0d034cd23c72bd7c7364b5b..c6f043ed75d8f1d8c57c397fb5af9754300c51c4 100755 (executable)
Binary files a/maptest.exe and b/maptest.exe differ
index 61d74dec2378300684f334b9f8a4938e63e81629..5e59028fc8d763e30568a88c9d44a9ce7459a071 100755 (executable)
Binary files a/palettec.exe and b/palettec.exe differ
index a73ea7cbc2a0929246a673d7156336791086f323..2c1b661f350ca78a7b4c592b8ca2038eacb2e8af 100755 (executable)
Binary files a/palettel.exe and b/palettel.exe differ
index 267bb01ada01aaa9d375991dd0893d02be0db8bf..9de5228af8e665876851943c478dc07f02a0be44 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index b98f84125bcceb3f1469dcf1bd04f1bbacd912e1..86688bb6bd8ffd61e291fb448c97f3f099cda116 100755 (executable)
Binary files a/pcxtest2.exe and b/pcxtest2.exe differ
index 406bc4f8d5d2d9ea11be5edbfd0faa9c0a3c5795..6434db389e1fff54d8bf385406cc12db3bc38b7e 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 8720adbaf60c680b2a29f2bb56c06a884d11f400..77521e4e0a56ffbb8d9c5720b05e647499b7d97a 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index cbf4df0525f2815a6c79fc728a49bab0ed41d1e3..70c8eb5a8105b1820ddaee7d5c3d6d298f2d7d94 100755 (executable)
@@ -399,11 +399,11 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
 {\r
        int plane;\r
        int px, py, i;\r
-       byte *buff;\r
+       byte near *buff;\r
 \r
        px=x;\r
        py=y;\r
-       buff = _fmalloc(p->pwidth+1);\r
+       buff = _nmalloc(p->pwidth+1);\r
        // TODO Make this fast.  It's SLOOOOOOW\r
 //     for(plane=0; plane < 4; plane++) {\r
 //             i=0;\r
@@ -434,7 +434,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
                x=px;\r
                y=py;\r
        }\r
-       _ffree(buff);\r
+       _nfree(buff);\r
 }\r
 \r
 void\r
index d3873ed9e77325bb1543b3007ca2ad08b647bafd..1eafcd6c9efdfdd072362c040a7268e5d7df80bc 100755 (executable)
@@ -82,7 +82,9 @@ baka = 1;
 //             oldDrawBmp(VGA, 20, 20, &bmp, 1);\r
 //0000         modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp);\r
 //             modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp);\r
-       DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+       for(i=0; i<100 ;i++) {\r
+               DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+       }\r
        t1 = (*clockw-start) /18.2;\r
        while(!kbhit())\r
        {\r
index 29c00a4765ad99444abe7dddf16b054f036877d7..c7ebae764fd1475a6fb8f78da8876bee38247a67 100755 (executable)
Binary files a/test.exe and b/test.exe differ
index b214c83e878abbe585c89f6c6c6bb5554745de75..99304e64906637a53c7bc243dc9192a83fbad2ff 100755 (executable)
Binary files a/test2.exe and b/test2.exe differ