1
0
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:
Ivan Savenko
2023-05-13 01:12:11 +03:00
parent 03df274450
commit 3ecdff2a21
6 changed files with 65 additions and 68 deletions

View File

@@ -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;