Merge pull request #9417 from Filoppi/input-1

Fix FPS counter and Game Window speed % breaking on pause/unpause
This commit is contained in:
Léo Lam 2021-05-07 15:08:01 +02:00 committed by GitHub
commit 049b92b7ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 125 additions and 31 deletions

View file

@ -224,7 +224,7 @@ int main(int argc, char* argv[])
return 1;
}
Core::SetOnStateChangedCallback([](Core::State state) {
Core::AddOnStateChangedCallback([](Core::State state) {
if (state == Core::State::Uninitialized)
s_platform->Stop();
});