Disable text input as startup

We're not handling any keyboard input at that point anyway.
This commit is contained in:
Tamás Bálint Misius 2021-09-05 19:30:37 +02:00
parent 1d0e039cec
commit 816b9eda3d
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 5 additions and 0 deletions

View File

@ -487,6 +487,8 @@ int main(int argc, char * argv[])
SDLOpen();
StopTextInput();
ui::Engine::Ref().g = new Graphics();
ui::Engine::Ref().Scale = scale;
ui::Engine::Ref().SetResizable(resizable);

View File

@ -871,6 +871,9 @@ int main(int argc, char * argv[])
exit(-1);
}
#endif
StopTextInput();
ui::Engine::Ref().g = new Graphics();
ui::Engine::Ref().Scale = scale;
ui::Engine::Ref().SetResizable(resizable);