Don't use margins for screen keyboard, because it's easy to misclick space

This commit is contained in:
Deve 2019-02-04 23:42:48 +01:00
parent 388594270f
commit f86b2657c1
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ void ScreenKeyboard::init()
{
const core::dimension2d<u32>& 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;

View File

@ -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);
}