mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Renamed Frame to Quad; added drawq/addq; fixed some bugs.
This commit is contained in:
@@ -69,9 +69,10 @@ namespace sdl
|
||||
}
|
||||
}
|
||||
|
||||
void Timer::sleep(unsigned int ms)
|
||||
void Timer::sleep(int ms)
|
||||
{
|
||||
SDL_Delay(ms);
|
||||
if(ms > 0)
|
||||
SDL_Delay(ms);
|
||||
}
|
||||
|
||||
float Timer::getDelta() const
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace sdl
|
||||
* usually 1ms.
|
||||
* @param ms The number of milliseconds to sleep for.
|
||||
**/
|
||||
void sleep(unsigned int ms);
|
||||
void sleep(int ms);
|
||||
|
||||
/**
|
||||
* Gets the time between the last two frames, assuming step is called
|
||||
|
||||
Reference in New Issue
Block a user