From f86b2657c1b90d38e13cffef28b4af4ab50d11b6 Mon Sep 17 00:00:00 2001 From: Deve Date: Mon, 4 Feb 2019 23:42:48 +0100 Subject: [PATCH] Don't use margins for screen keyboard, because it's easy to misclick space --- src/guiengine/screen_keyboard.cpp | 2 +- src/guiengine/widgets/CGUIEditBox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guiengine/screen_keyboard.cpp b/src/guiengine/screen_keyboard.cpp index 14ca2c84f..777bb49e7 100644 --- a/src/guiengine/screen_keyboard.cpp +++ b/src/guiengine/screen_keyboard.cpp @@ -125,7 +125,7 @@ void ScreenKeyboard::init() { const core::dimension2d& frame_size = irr_driver->getFrameSize(); - int margin = 15; + int margin = 0; int w = int(frame_size.Width * m_percent_width); int h = int(frame_size.Height * m_percent_height); int x = frame_size.Width/2 - w/2; diff --git a/src/guiengine/widgets/CGUIEditBox.cpp b/src/guiengine/widgets/CGUIEditBox.cpp index 21fdb30db..b6b8250b5 100644 --- a/src/guiengine/widgets/CGUIEditBox.cpp +++ b/src/guiengine/widgets/CGUIEditBox.cpp @@ -1786,6 +1786,6 @@ void CGUIEditBox::openScreenKeyboard() setTextMarkers(CursorPos, CursorPos); calculateScrollPos(); - new GUIEngine::ScreenKeyboard(0.98f, 0.40f, this); + new GUIEngine::ScreenKeyboard(1.0f, 0.40f, this); }