Improved clipping text issue

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-01-31 16:52:39 +00:00
parent f80b9a5637
commit 9779048407

View File

@ -38,7 +38,7 @@ AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.7f, 0.7f)
const int textHeight = GUIEngine::getFontHeight();
const int buttonHeight = textHeight + 10;
const int y_bottom = m_area.getHeight() - 2*(buttonHeight + 10) - 20;
const int y_bottom = m_area.getHeight() - 2*(buttonHeight + 10) - 10;
core::rect<s32> text_area( 15, 15, m_area.getWidth()-15, y_bottom-15 );
@ -73,7 +73,7 @@ AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.7f, 0.7f)
const int textWidth = font->getDimension( widget->m_text.c_str() ).Width + 40;
widget->x = m_area.getWidth()/2 - textWidth/2;
widget->y = y_bottom + buttonHeight + 20;
widget->y = y_bottom + buttonHeight + 10;
widget->w = textWidth;
widget->h = buttonHeight;
widget->setParent(m_irrlicht_window);