From 644063d2c8806898bafb8f2c39ee560800589f39 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 22 Nov 2016 11:01:30 +0100 Subject: [PATCH] Messages: move window to top of screen User request. --- src/gui/widget/hintbox.cpp | 4 ++-- src/gui/widget/msgbox.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/hintbox.cpp b/src/gui/widget/hintbox.cpp index 5709df99b..6d64e7fc1 100644 --- a/src/gui/widget/hintbox.cpp +++ b/src/gui/widget/hintbox.cpp @@ -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(); } diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index a8bc796fd..e2edcdeed 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -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