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