X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_timer.c;h=6d00448fd698a68c16198154de86cca10ee2c59f;hb=6e03d6f5e9c13a7eb7597a6f9bd3c58036ec35c4;hp=c8416c79f822c08735e52cd15ade0026e4b7677e;hpb=b944e5a4e57c1a1ba44dff4ffafdee4edd5b5d99;p=16.git diff --git a/src/lib/16_timer.c b/src/lib/16_timer.c index c8416c79..6d00448f 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()) { @@ -73,7 +73,7 @@ void shinkutxt(global_game_variables_t *gv) if(elapsed_timer(gv) >= (1.0 / gv->kurokku.frames_per_second)) { //t=(((*(gv->clock))-gv->clock_start) /18.2); - sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv)); + sprintf(gv->pee, "%.0f fps", (double)gv->kurokku.tiku/ticktock(gv)); fprintf(stderr, "%s\n", gv->pee); //(gv->clock_start)=*(gv->clock); gv->kurokku.tiku=0;