Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong casting in SDL2 sample #71

Closed
uniquejack opened this issue Dec 23, 2019 · 1 comment
Closed

Wrong casting in SDL2 sample #71

uniquejack opened this issue Dec 23, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@uniquejack
Copy link

At the moment GetElapsedTime divides SDL_GetTicks by 1000 (integer) as a result it returns a rounded value. It should be fixed in this way:

double RmlUiSDL2SystemInterface::GetElapsedTime()
{
	return SDL_GetTicks() / 1000.0;
}
@mikke89 mikke89 added the bug Something isn't working label Dec 25, 2019
@mikke89
Copy link
Owner

mikke89 commented Dec 25, 2019

Thank you!

@mikke89 mikke89 closed this as completed Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants