mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
CBuildInfo: use member doCenter() for centering window
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
CBuildInfo::CBuildInfo() : CComponentsWindow(1, 1, 700, 500, LOCALE_BUILDINFO_MENU, NEUTRINO_ICON_INFO)
|
||||
CBuildInfo::CBuildInfo() : CComponentsWindow(0, 0, 700, 500, LOCALE_BUILDINFO_MENU, NEUTRINO_ICON_INFO)
|
||||
{
|
||||
initVarBuildInfo();
|
||||
}
|
||||
@@ -43,8 +43,7 @@ CBuildInfo::CBuildInfo() : CComponentsWindow(1, 1, 700, 500, LOCALE_BUILDINFO_ME
|
||||
//init all var members
|
||||
void CBuildInfo::initVarBuildInfo()
|
||||
{
|
||||
x = frameBuffer->getScreenWidth(true)/2 - width/2;
|
||||
y = frameBuffer->getScreenHeight(true)/2 -height/2;
|
||||
doCenter();
|
||||
|
||||
append_v_offset = 1;
|
||||
font = NULL;
|
||||
|
Reference in New Issue
Block a user