Fix warning

This commit is contained in:
Alexander Batalov 2022-12-26 12:03:14 +03:00
parent a05ab09e1b
commit b74f3c368b
2 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,7 @@
namespace fallout { namespace fallout {
FpsLimiter::FpsLimiter(std::size_t fps) FpsLimiter::FpsLimiter(unsigned int fps)
: _fps(fps) : _fps(fps)
, _ticks(0) , _ticks(0)
{ {

View File

@ -1,19 +1,17 @@
#ifndef FPS_LIMITER_H #ifndef FPS_LIMITER_H
#define FPS_LIMITER_H #define FPS_LIMITER_H
#include <cstddef>
namespace fallout { namespace fallout {
class FpsLimiter { class FpsLimiter {
public: public:
FpsLimiter(std::size_t fps = 60); FpsLimiter(unsigned int fps = 60);
void mark(); void mark();
void throttle() const; void throttle() const;
private: private:
const std::size_t _fps; const unsigned int _fps;
std::size_t _ticks; unsigned int _ticks;
}; };
} // namespace fallout } // namespace fallout