Messages: move window to top of screen

User request.


Origin commit data
------------------
Commit: 644063d2c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-22 (Tue, 22 Nov 2016)
This commit is contained in:
2016-11-22 11:01:30 +01:00
parent c91143c82d
commit 3bed87466a
2 changed files with 4 additions and 3 deletions

View File

@@ -309,8 +309,8 @@ void CHintBox::addHintItem(const std::string& Text, const int& text_mode, const
ReSize();
/* set hint box position general to center and refresh window */
setCenterPos();
setCenterPos(CC_ALONG_X);
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight() - height) >> 2),
Refresh();
}

View File

@@ -204,7 +204,8 @@ void CMsgBox::initButtons()
ccw_footer->enableButtonShadow(CC_SHADOW_ON, OFFSET_SHADOW/2, true);
//set position of meassage window and refresh window properties
setCenterPos();
setCenterPos(CC_ALONG_X);
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight() - height) >> 2),
Refresh();
//set the 1st button as default selected button