- upnpbrowser: center text in topbox

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-06-19 21:20:19 +02:00
committed by Thilo Graf
parent ddcda8be27
commit d357835b38

View File

@@ -942,7 +942,7 @@ void CUpnpBrowserGui::paintDeviceInfo()
topbox.setDimensionsAll(m_x, m_y, m_width, m_topbox_height); topbox.setDimensionsAll(m_x, m_y, m_width, m_topbox_height);
topbox.setCorner(RADIUS_LARGE); topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH); topbox.setText(tmp, CTextBox::AUTO_WIDTH | CTextBox::CENTER);
topbox.paint0(); topbox.paint0();
} }
@@ -1144,7 +1144,7 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
} }
topbox.setCorner(RADIUS_LARGE); topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH); topbox.setText(tmp, CTextBox::AUTO_WIDTH | CTextBox::CENTER);
topbox.paint0(); topbox.paint0();
} }