]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Tue, 24 Nov 2015 20:46:58 +0000 (14:46 -0600)
committersparky4 <sparky4@cock.li>
Tue, 24 Nov 2015 20:46:58 +0000 (14:46 -0600)
16.exe
bakapi.exe
exmmtest.exe
planrpcx.exe
scroll.exe
src/bakapi.c
src/lib/bakapee.c
src/lib/bakapee.h
test.exe

diff --git a/16.exe b/16.exe
index 5eebd937486634b9d4f80cf101d90d475c644eaa..55a5ccab0edafd9a04689b3f84c2022ebc5b039b 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index f4b011b43d71e6d2eda284cc3a6d4e54f32e3c35..fee866d459ea0db41a0293ec699420ee03b387b9 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index 4a5e0d202950e76bde8a4d25e190a0a175d1cdb4..dac0a57c6e4d4e0482a6b3267c6b6dc00ef7634f 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 865a95c40880f1a6c9615d99acbe1896d181891d..532074f8fbd475138284179daba599362f29b637 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 11bedbfa60b9cb6a303fff11c539df164df843a2..8c236d2eca4da3584e11cd57d2aaf7d23dd209fe 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index 1f7cd159c8bda4946527fb4716cd86ff6960a340..16a0c77f07b49f2f79ca54072774cad219f70ddd 100755 (executable)
@@ -41,7 +41,11 @@ main(int argc, char *argvar[])
        xdir=1;
        ydir=1;
 
+#ifdef MXLIB
        VGAmodeX(1, &gvar);
+#else
+       mxSetMode(3);
+#endif
        bakapee.xx = rand()&0%gvar.video.page[0].width;
        bakapee.yy = rand()&0%gvar.video.page[0].height;
        bakapee.gq = 0;
@@ -53,8 +57,8 @@ main(int argc, char *argvar[])
 
        /* setup camera and screen~ */
        gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);
-       //gvar.video.page[0].width += (TILEWH*2);
-       //gvar.video.page[0].height += (TILEWH*2);
+       gvar.video.page[0].width += (TILEWH*2);
+       gvar.video.page[0].height += (TILEWH*2);
        textInit();
 
        //modexPalUpdate(bmp.palette); //____
@@ -73,9 +77,14 @@ main(int argc, char *argvar[])
                }
                else
                {
+                       #ifndef MXLIB
+                       mxChangeMode(0);
+#else
                        VGAmodeX(0, &gvar);
+#endif
                        //modexLeave();
                        // user imput switch
+                       fprintf(stderr, "xx=%d  yy=%d\n", bakapee.xx, bakapee.yy);
                        printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch());  // prompt the user
                        scanf("%d", &key);
                        //if(key==3){xx=yy=0;} // crazy screen saver wwww
@@ -83,7 +92,11 @@ main(int argc, char *argvar[])
                                gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);
                                gvar.video.page[0].width += (TILEWH*2);
                                gvar.video.page[0].height += (TILEWH*2);
+#ifdef MXLIB
                                VGAmodeX(1, &gvar);
+#else
+                               mxChangeMode(3);
+#endif
                                modexShowPage(&gvar.video.page[0]);
                        }
                }
index 09125984c8d4a660f2ccdba34edfe251ffb1a950..000ac84a1e5075b4300f5b7215c1b077d6a5ba5e 100755 (executable)
@@ -67,9 +67,12 @@ void ssd(page_t *page, bakapee_t *pee, word svq)
 void dingpp(page_t *page, bakapee_t *pee)
 {
 #ifdef TILE
+#ifndef MXLIB
        //fill_block(pee->xx, pee->yy, pee->xx+TILEWH, pee->yy+TILEWH, pee->coor);
-       //mxFillBox(pee->xx, pee->yy, TILEWH, TILEWH, pee->coor, OP_SET);
+       mxFillBox(pee->xx, pee->yy, TILEWH, TILEWH, pee->coor, OP_SET);
+#else
        modexClearRegion(page, pee->xx, pee->yy, TILEWH, TILEWH, pee->coor);
+#endif
 #else
        modexputPixel(page, pee->xx, pee->yy, pee->coor);
 #endif
index 5f46f256af605a723628a0eb2bf241663df9bf93..df74c1bda3018df4e17596da2f3161a58ea3e349 100755 (executable)
@@ -36,6 +36,9 @@
 \r
 #define TILE\r
 \r
+//which lib?\r
+#define MXLIB\r
+\r
 typedef struct {\r
        word gq;\r
        sword bakax, bakay;\r
index 5f1f4b9bce9446051d37824ea0b059e36fd5324c..ba00aa39d5edb4c9220c7758b4f70229aca179bc 100755 (executable)
Binary files a/test.exe and b/test.exe differ