From 816b9eda3da6e56da5d12ddbb77f2c301f151338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 5 Sep 2021 19:30:37 +0200 Subject: [PATCH] Disable text input as startup We're not handling any keyboard input at that point anyway. --- src/PowderToyFontEditor.cpp | 2 ++ src/PowderToySDL.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/PowderToyFontEditor.cpp b/src/PowderToyFontEditor.cpp index c6b84b042..b2ba9ac29 100644 --- a/src/PowderToyFontEditor.cpp +++ b/src/PowderToyFontEditor.cpp @@ -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); diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index c86654332..c5a843dbc 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -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);