Fix warning
This commit is contained in:
parent
a05ab09e1b
commit
b74f3c368b
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace fallout {
|
||||
|
||||
FpsLimiter::FpsLimiter(std::size_t fps)
|
||||
FpsLimiter::FpsLimiter(unsigned int fps)
|
||||
: _fps(fps)
|
||||
, _ticks(0)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue