upnpbrowser: center text in topbox

Origin commit data
------------------
Branch: ni/coolstream
Commit: b7891f3096
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-19 (Mon, 19 Jun 2017)

Origin message was:
------------------
- upnpbrowser: center text in topbox

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-06-19 21:20:19 +02:00
parent 7a4bf83694
commit 023a3b5f8c

View File

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