소스 검색

Ceil seconds instead of flooring them

rexim 5 년 전
부모
커밋
e0139e28ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -186,7 +186,7 @@ int main(int argc, char **argv)
             int pen_x, pen_y;
             initial_pen(window, &pen_x, &pen_y, scale);
 
-            const size_t t = (size_t) floorf(fmaxf(time, 0.0f));
+            const size_t t = (size_t) ceilf(fmaxf(time, 0.0f));
 
             const size_t hours = t / 60 / 60;
             render_digit_at(renderer, digits, hours / 10, wiggle_index, &pen_x, &pen_y, scale);