]> 4ch.mooo.com Git - 16.git/commitdiff
16.c needs to probe DOS and VGA before using modex library. -repo sync-
authorsparky4 <sparky4@cock.li>
Mon, 18 Apr 2016 21:06:43 +0000 (16:06 -0500)
committersparky4 <sparky4@cock.li>
Mon, 18 Apr 2016 21:06:43 +0000 (16:06 -0500)
src/lib/16_timer.c
src/lib/scroll16.c

index c8416c79f822c08735e52cd15ade0026e4b7677e..0b5cf41684b797817425046634d7bd0cac2bde2b 100755 (executable)
@@ -29,7 +29,7 @@ clock_t start_timer(global_game_variables_t *gv)
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
        gv->kurokku.frames_per_second = 60;\r
-       gv->pee = _nmalloc(sizeof(byte)*2);\r
+       gv->pee = _nmalloc(sizeof(byte)*16);\r
        //turn this off if XT\r
        switch(detectcpu())\r
        {\r
index 41a4d98343c55fe610150de09157d47a8a1bd05f..73a5fbbaedb34c8875fa50be09dbb63114046637 100755 (executable)
@@ -594,15 +594,14 @@ void shinku(map_view_t *pip, global_game_variables_t *gv)
        if(elapsed_timer(gv) >= (1.0 / gv->kurokku.frames_per_second))
        {
                word x = (16);
-               word y = (8+16);
-               word col = 15;
+               word y = (16);
+               word col = 1;
                word bgcol = 0;
                word type = 1;
                //t=(((*(gv->clock))-gv->clock_start) /18.2);
                sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
-               printf("%s", gv->pee);
                //FIXME PLEASE!!
-               modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee);
+               //modexprint(pip[0].page, x*4, y*4, type, col, bgcol, gv->pee);
                //(gv->clock_start)=*(gv->clock);
                gv->kurokku.tiku=0;
        }