Browse Source

changed ceilf to floorf for display time to start properly at 0

Signed-off-by: rexim <[email protected]>
Iselgrey 1 year ago
parent
commit
14ef3fc8e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -376,7 +376,7 @@ int main(int argc, char **argv)
         SDL_SetRenderDrawColor(renderer, BACKGROUND_COLOR_R, BACKGROUND_COLOR_G, BACKGROUND_COLOR_B, 255);
         SDL_RenderClear(renderer);
         {
-            const size_t t = (size_t) ceilf(fmaxf(displayed_time, 0.0f));
+            const size_t t = (size_t) floorf(fmaxf(displayed_time, 0.0f));
             // PENGER BEGIN //////////////////////////////
 
             #ifdef PENGER