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 {
FpsLimiter::FpsLimiter(std::size_t fps)
FpsLimiter::FpsLimiter(unsigned int fps)
: _fps(fps)
, _ticks(0)
{

View File

@ -1,19 +1,17 @@
#ifndef FPS_LIMITER_H
#define FPS_LIMITER_H
#include <cstddef>
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