Fixed FIXME (and thus handle better scalable font in ribbons)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4350 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
71f9a6d44f
commit
6c4bce0acf
@ -56,7 +56,16 @@ void DynamicRibbonWidget::add()
|
||||
//printf("****DynamicRibbonWidget::add()****\n");
|
||||
|
||||
m_has_label = (m_text == "bottom");
|
||||
m_label_height = m_has_label ? 25 : 0; // FIXME : get height from font, don't hardcode (what if label is multiline?)
|
||||
|
||||
if (m_has_label)
|
||||
{
|
||||
// FIXME - won't work with multiline labels.
|
||||
m_label_height = GUIEngine::getFont()->getDimension( L"X" ).Height;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_label_height = 0;
|
||||
}
|
||||
|
||||
// ----- add dynamic label at bottom
|
||||
if (m_has_label)
|
||||
|
Loading…
Reference in New Issue
Block a user