From 6c87d1807f75a8941c9c9302b5adc3cb548f46e7 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 18 Apr 2016 16:06:43 -0500 Subject: [PATCH] 16.c needs to probe DOS and VGA before using modex library. -repo sync- --- src/lib/16_timer.c | 2 +- src/lib/scroll16.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/16_timer.c b/src/lib/16_timer.c index c8416c79..0b5cf416 100755 --- a/src/lib/16_timer.c +++ b/src/lib/16_timer.c @@ -29,7 +29,7 @@ clock_t start_timer(global_game_variables_t *gv) gv->kurokku.clock_start = *clockw; gv->kurokku.clock = clockw; gv->kurokku.frames_per_second = 60; - gv->pee = _nmalloc(sizeof(byte)*2); + gv->pee = _nmalloc(sizeof(byte)*16); //turn this off if XT switch(detectcpu()) { diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 41a4d983..73a5fbba 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -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; } -- 2.39.5