]> 4ch.mooo.com Git - 16.git/commitdiff
ok the print buffer stuff should work better now in exmmtest.exe
authorsparky4 <sparky4@cock.li>
Thu, 17 Aug 2017 21:57:15 +0000 (16:57 -0500)
committersparky4 <sparky4@cock.li>
Thu, 17 Aug 2017 21:57:15 +0000 (16:57 -0500)
src/exmmtest.c
src/exmmtest.h

index 7bf0ef01bd8f8894610d19d22d9752e10bb89330..62fdd32e4a8e75082a599f6d1cb78755641fd4b8 100755 (executable)
@@ -105,6 +105,7 @@ main(int argc, char *argv[])
                                                                #ifdef INITBBUF\r
        INITBBUF\r
                                                                #endif\r
+       //0000mmblocktype far *scan;\r
 \r
        char bakapee1[64] = FILENAME_1;\r
        char bakapee2[64] = FILENAME_2;\r
@@ -177,7 +178,18 @@ PRINTBB; KEYP
                        printf("====================================load end===================================\n");\r
                }\r
                                                                #ifdef BUFFDUMP\r
-               printf("contents of the buffer\n[\n%s\n]\n", BBUFSTRING);\r
+               printf("contents of the buffer\n[\n%.*s\n]\n", strlen(BBUFSTRING), BBUFSTRING);\r
+#if 0\r
+//0000\r
+               scan = gvar.mm.mmhead;\r
+               while (scan->useptr != &BBUFNAME && scan)\r
+               {\r
+                       scan = scan->next;\r
+               }\r
+               printf("\n      %Fp     %Fp\n", scan->useptr, &BBUFNAME);\r
+               printf("\nstrlen of buffer = %zu\n", strlen(BBUFSTRING));\r
+               printf("length of buffer = %lu\n", scan->scan->length);\r
+#endif\r
                                                                #endif\r
                                                                #ifdef PRINTBBDUMP\r
                PRINTBB;\r
@@ -209,6 +221,7 @@ PRINTBB; KEYP
 \r
 #ifndef NOVID\r
        VGAmodeX(8, 0, &gvar); VL_LoadPalFileCore(&gvar.video.palette, &gvar);\r
+       VL_ClearVideo (0);\r
        modexHiganbanaPageSetup(&gvar);\r
        gvar.video.page[0].dx = gvar.video.page[0].dy = 0;\r
 //     VL_modexPalScramble(&gvar.video.palette);\r
index 463932eb2afb7e08db5d1da582641d2f4f87c255..9d8792403b5005e05b3b4811fa66003e01c237f7 100755 (executable)
@@ -57,7 +57,7 @@
 \r
 #define KEYP IN_Shutdown(&gvar); printf("\n\npress any key to continue!\n"); getch(); IN_Startup(&gvar);\r
 \r
-#define BBUFNAME gvar.mm.bufferseg//bigbuffer\r
+#define BBUFNAME gvar.mm.bufferseg\r
 //#define INITBBUF static memptr BBUFNAME;\r
 #define BBUFPTR        MEMPTRCONV BBUFNAME\r
 \r