mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
FramerateManager now uses chrono instead of SDL_Ticks
This commit is contained in:
@@ -163,16 +163,6 @@ void CBuildingRect::clickRight(tribool down, bool previousState)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Color multiplyColors(const SDL_Color & b, const SDL_Color & a, double f)
|
||||
{
|
||||
SDL_Color ret;
|
||||
ret.r = static_cast<uint8_t>(a.r * f + b.r * (1 - f));
|
||||
ret.g = static_cast<uint8_t>(a.g * f + b.g * (1 - f));
|
||||
ret.b = static_cast<uint8_t>(a.b * f + b.b * (1 - f));
|
||||
ret.a = static_cast<uint8_t>(a.a * f + b.b * (1 - f));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void CBuildingRect::show(SDL_Surface * to)
|
||||
{
|
||||
uint32_t stageDelay = BUILDING_APPEAR_TIMEPOINT;
|
||||
|
||||
Reference in New Issue
Block a user