From 27b7cb8f1feb0856a42b415b21ab8deedb2ffcbc Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Sun, 21 Mar 2021 13:43:01 +0300 Subject: [PATCH] show long press hints higher kambala-decapitator/vcmi#29 --- client/windows/InfoWindows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/windows/InfoWindows.cpp b/client/windows/InfoWindows.cpp index 7f3ee26d3..25e6432e5 100644 --- a/client/windows/InfoWindows.cpp +++ b/client/windows/InfoWindows.cpp @@ -308,6 +308,10 @@ void CRClickPopup::createAndPush(const std::string &txt, const CInfoWindow::TCom auto temp = std::make_shared(txt, player, comps); temp->center(Point(GH.current->motion)); //center on mouse +#ifdef VCMI_IOS + // TODO: enable also for android? + temp->moveBy({0, -temp->pos.h / 2}); +#endif temp->fitToScreen(10); GH.pushIntT(temp);