Files
Gleb Mazovetskiy 8f6e9810d0 SDL3: Make text_render_integration_test build
Adds support for just enough SDL3 to make `text_render_integration_test`
work.
2025-10-05 20:17:47 +01:00

19 lines
296 B
C++

#include "engine/ticks.hpp"
#include <cstdint>
#ifdef USE_SDL3
#include <SDL3/SDL_timer.h>
#else
#include <SDL.h>
#endif
namespace devilution {
uint32_t GetAnimationFrame(uint32_t frames, uint32_t fps)
{
return (SDL_GetTicks() / fps) % frames;
}
} // namespace devilution