CBuildInfo: use member doCenter() for centering window

Origin commit data
------------------
Commit: 65ef4b4ccf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
This commit is contained in:
2014-01-31 19:36:29 +01:00
parent be04423b30
commit 753d478e2c

View File

@@ -35,7 +35,7 @@
using namespace std; 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(); initVarBuildInfo();
} }
@@ -43,8 +43,7 @@ CBuildInfo::CBuildInfo() : CComponentsWindow(1, 1, 700, 500, LOCALE_BUILDINFO_ME
//init all var members //init all var members
void CBuildInfo::initVarBuildInfo() void CBuildInfo::initVarBuildInfo()
{ {
x = frameBuffer->getScreenWidth(true)/2 - width/2; doCenter();
y = frameBuffer->getScreenHeight(true)/2 -height/2;
append_v_offset = 1; append_v_offset = 1;
font = NULL; font = NULL;