]> 4ch.mooo.com Git - 16.git/commitdiff
==== FIXED MAP INDEX NUMBER PRITING IN DRAWTILE wwww ==== oh i forgot to add thiswwww
authorsparky4 <sparky4@cock.li>
Tue, 14 Feb 2017 23:44:44 +0000 (17:44 -0600)
committersparky4 <sparky4@cock.li>
Tue, 14 Feb 2017 23:44:44 +0000 (17:44 -0600)
kurokku.wcpu [new file with mode: 0755]
src/lib/16_tdef.h
src/lib/16_timer.c
src/lib/scroll16.c
src/zcroll.c

diff --git a/kurokku.wcpu b/kurokku.wcpu
new file mode 100755 (executable)
index 0000000..c2cfbc0
--- /dev/null
@@ -0,0 +1,61 @@
+src/lib/16_timer.c:    gv->kurokku.t = clock();\r
+src/lib/16_timer.c:    gv->kurokku.tiku = 0; gv->video.sfip = 0;\r
+src/lib/16_timer.c:    gv->kurokku.clock_start = *clockw;\r
+src/lib/16_timer.c:    gv->kurokku.clock = clockw;\r
+src/lib/16_timer.c:    gv->kurokku.wcpu = WCPU_detectcpu();\r
+src/lib/16_timer.c:    switch(gv->kurokku.wcpu)\r
+src/lib/16_timer.c:                    gv->kurokku.fpscap=0;\r
+src/lib/16_timer.c:                    gv->kurokku.frames_per_second=1;\r
+src/lib/16_timer.c:                    gv->kurokku.fpscap=1;\r
+src/lib/16_timer.c:                    gv->kurokku.frames_per_second=60;\r
+src/lib/16_timer.c:    return gv->kurokku.t;\r
+src/lib/16_timer.c:    return (clock() - gv->kurokku.t) / CLOCKS_PER_SEC;\r
+src/lib/16_timer.c:    clocku = (clock() - gv->kurokku.t) / CLOCKS_PER_SEC;\r
+src/lib/16_timer.c:    gv->kurokku.t = clock();\r
+src/lib/16_timer.c:    return (gv->kurokku.t) / CLOCKS_PER_SEC;\r
+src/lib/16_timer.c:    if(elapsed_timer(gv) >= (1.0 / gv->kurokku.frames_per_second))\r
+src/lib/16_timer.c:            //t=(((*(gv->clock))-gv->clock_start) /18.2);\r
+src/lib/16_timer.c:            sprintf(global_temp_status_text, "%.0f fps", (double)gv->kurokku.tiku/ticktock(gv));\r
+src/lib/16_timer.c:            //(gv->clock_start)=*(gv->clock);\r
+src/lib/16_timer.c:            gv->kurokku.tiku=0;\r
+src/lib/16_timer.c:    gv->kurokku.tiku++;\r
+src/lib/16_timer.c://  switch(gv->kurokku.fpscap)\r
+src/lib/16_timer.c://                  gv->kurokku.frames_per_second=1;\r
+src/lib/16_timer.c://                  gv->kurokku.frames_per_second=60;\r
+src/lib/16_vl.c:                       in.h.al = gv->video.old_mode;\r
+src/lib/16_vl.c:                       gv->video.old_mode = vgaGetMode();//out.h.al;\r
+src/lib/16_vl.c:                       gv->video.page[0].sw = vga_state.vga_width = 320; // VGA lib currently does not update this\r
+src/lib/16_vl.c:                       gv->video.page[0].sh = vga_state.vga_height = 240; // VGA lib currently does not update this\r
+src/lib/16_vl.c:                       gv->video.page[0].height = gv->video.page[0].sh;\r
+src/lib/16_vl.c:                       gv->video.page[0].width = gv->video.page[0].sw;\r
+src/lib/scroll16.c:    pip[0].page = &gv->video.page[0];\r
+src/lib/scroll16.c:    pip[0].video = &gv->video;\r
+src/lib/scroll16.c:    pip[0].p        = &gv->video.p;\r
+src/lib/scroll16.c:    pip[0].sp       = &gv->video.sp;\r
+src/lib/scroll16.c:    for(i=ZC_MVI;i<gv->video.num_of_pages;i++)\r
+src/lib/scroll16.c:            pip[i].page     =       &gv->video.page[i];\r
+src/lib/scroll16.c:    word x = gv->video.page[/*!*/(gv->video.p)].dx; //(gv->video.page[(gv->video.p)].tlx) - // follow the screen\r
+src/lib/scroll16.c:    word y = gv->video.page[/*!*/(gv->video.p)].dy; //(gv->video.page[(gv->video.p)].tly) - // follow the screen\r
+src/lib/scroll16.c:    if(elapsed_timer(gv) >= (1.0 / gv->kurokku.frames_per_second))\r
+src/lib/scroll16.c:        // NTS: For some bizarre reason, gv->pee is not initialized, but the pointer is not NULL even\r
+src/lib/scroll16.c:            sprintf(global_temp_status_text, "%.0f fps", (double)gv->kurokku.tiku/ticktock(gv));\r
+src/lib/scroll16.c:            //modexprint(&(gv->video.page[/*!*/(gv->video.p)]), x, y, type, 1, col, bgcol, global_temp_status_text);\r
+src/lib/scroll16.c:            if(gv->kurokku.wcpu)\r
+src/lib/scroll16.c:                    modexCopyPageRegion(&gv->video.page[0], &gv->video.page[1],\r
+src/lib/scroll16.c:                            gv->video.page[/*!*/(gv->video.p)].dx,\r
+src/lib/scroll16.c:                            gv->video.page[/*!*/(gv->video.p)].dy,\r
+src/lib/scroll16.c:                            gv->video.page[/*!*/(gv->video.p)].dx,\r
+src/lib/scroll16.c:                            gv->video.page[/*!*/(gv->video.p)].dy,\r
+src/lib/scroll16.c:                    modexprint(&(gv->video.page[/*!*/(gv->video.p)]), x, y, type, 1, col, bgcol, global_temp_status_text);\r
+src/lib/scroll16.c://0000printf("dx=%u dy=%u\n", gv->video.page[/*!*/(gv->video.p)].dx, gv->video.page[/*!*/(gv->video.p)].dy);\r
+src/lib/scroll16.c:            gv->kurokku.tiku=0;\r
+src/lib/scroll16.c:    gv->kurokku.tiku++;\r
+src/lib/scroll16.c:    switch(gv->kurokku.fpscap)\r
+src/lib/scroll16.c:                    //modexprint(&(gv->video.page[0]), x, y+8, type, 1, col, bgcol, "sanic!");\r
+src/lib/scroll16.c:                    gv->kurokku.frames_per_second=1;\r
+src/lib/scroll16.c:                    gv->kurokku.frames_per_second=60;\r
+src/lib/scroll16.c:    if(gv->video.dorender )\r
+src/lib/scroll16.c:                    modexCopyPageRegion(&(gv->video.page[ ]), &(gv->video.page[ ]), 0, 0, 0, 0, gv->video.page[ ].width, gv->video.page[ ].height);\r
+src/lib/scroll16.c:            VL_ShowPage(&(gv->video.page[gv->video.sp]), gv->kurokku.fpscap, 0);\r
+src/lib/scroll16.c:            gv->video.dorender =!gv->video.dorender ;\r
+src/lib/scroll16.c:            //0000gv->video.tickclk = ((*clockw)-gv->video.startclk)/18.2;\r
index 4c33811194611fd21df66a65048d4da5a7385eaa..e99be1de54cea98f560801cab6b930117025655c 100755 (executable)
@@ -274,6 +274,7 @@ typedef struct
        word clock_start;       //timer start\r
        word *clock;    //current time on clock\r
        boolean fpscap; //cap the fps var\r
+       nibble wcpu;    //stored value of cpu type\r
 } kurokku_t;\r
 \r
 //video\r
index 16295d1bca454f12c01bf5d709276761f18e2633..a9dba5d5d26eeeb58792e1bf0bfdc8ecffe0d7ea 100755 (executable)
@@ -30,10 +30,10 @@ clock_t start_timer(global_game_variables_t *gv)
        gv->kurokku.tiku = 0; gv->video.sfip = 0;\r
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
-       //gv->kurokku.frames_per_second = 60;\r
+       gv->kurokku.wcpu = WCPU_detectcpu();\r
 \r
-    //turn this off if XT\r
-       switch(WCPU_detectcpu())\r
+       //turn this off if XT\r
+       switch(gv->kurokku.wcpu)\r
        {\r
                case 0:\r
                        gv->kurokku.fpscap=0;\r
index 5c732737695714b8f5c236c989e7417aa3328bc4..47ee9f7f22674394fc91d8e04800b256fc14797d 100755 (executable)
@@ -675,14 +675,17 @@ void shinku(global_game_variables_t *gv)
         //      This fixes *** Null pointer assignment detected error message in ZCROLL.EXE on exit.\r
                sprintf(global_temp_status_text, "%.0f fps", (double)gv->kurokku.tiku/ticktock(gv));\r
                //modexprint(&(gv->video.page[/*!*/(gv->video.p)]), x, y, type, 1, col, bgcol, global_temp_status_text);\r
-               modexCopyPageRegion(&gv->video.page[0], &gv->video.page[1],\r
-                       gv->video.page[/*!*/(gv->video.p)].dx,\r
-                       gv->video.page[/*!*/(gv->video.p)].dy,\r
-                       gv->video.page[/*!*/(gv->video.p)].dx,\r
-                       gv->video.page[/*!*/(gv->video.p)].dy,\r
-                       96, 16);\r
-               modexprint(&(gv->video.page[/*!*/(gv->video.p)]), x, y, type, 1, col, bgcol, global_temp_status_text);\r
+               if(gv->kurokku.wcpu)\r
+               {\r
+                       modexCopyPageRegion(&gv->video.page[0], &gv->video.page[1],\r
+                               gv->video.page[/*!*/(gv->video.p)].dx,\r
+                               gv->video.page[/*!*/(gv->video.p)].dy,\r
+                               gv->video.page[/*!*/(gv->video.p)].dx,\r
+                               gv->video.page[/*!*/(gv->video.p)].dy,\r
+                               96, 16);\r
+                       modexprint(&(gv->video.page[/*!*/(gv->video.p)]), x, y, type, 1, col, bgcol, global_temp_status_text);\r
 //0000printf("dx=%u    dy=%u\n", gv->video.page[/*!*/(gv->video.p)].dx, gv->video.page[/*!*/(gv->video.p)].dy);\r
+               }\r
                gv->kurokku.tiku=0;\r
        }else //copy dat sheet\r
        gv->kurokku.tiku++;\r
index 342f3ba54b058bdce07d85e2db539793fc0578ac..309d07e2269d842563235e5f944c2257a48512c9 100755 (executable)
@@ -99,6 +99,7 @@ void main(int argc, char *argv[])
        dpal = modexNewPal();\r
        modexPalSave(dpal);\r
        modexFadeOff(4, dpal);\r
+       modexPalBlack();\r
 #endif\r
 \r
        VGAmodeX(1/*bakapee*/, 1, &gvar);\r