diff --git a/src/fps_limiter.cc b/src/fps_limiter.cc index 8ac9a56..7b62137 100644 --- a/src/fps_limiter.cc +++ b/src/fps_limiter.cc @@ -4,7 +4,7 @@ namespace fallout { -FpsLimiter::FpsLimiter(std::size_t fps) +FpsLimiter::FpsLimiter(unsigned int fps) : _fps(fps) , _ticks(0) { diff --git a/src/fps_limiter.h b/src/fps_limiter.h index 95df0aa..ce33346 100644 --- a/src/fps_limiter.h +++ b/src/fps_limiter.h @@ -1,19 +1,17 @@ #ifndef FPS_LIMITER_H #define FPS_LIMITER_H -#include - namespace fallout { class FpsLimiter { public: - FpsLimiter(std::size_t fps = 60); + FpsLimiter(unsigned int fps = 60); void mark(); void throttle() const; private: - const std::size_t _fps; - std::size_t _ticks; + const unsigned int _fps; + unsigned int _ticks; }; } // namespace fallout