diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index a849e4dab..2354c9724 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1236,7 +1236,7 @@ int CTestMenu::exec(CMenuTarget *parent, const std::string &actionKey) } else if (actionKey == "hourglass") { - CHourGlass hg(20, 20); + CHourGlass hg; hg.paint(); sleep(10); hg.hide(); diff --git a/src/gui/widget/hourglass.h b/src/gui/widget/hourglass.h index fe942fe9c..da5bbe118 100644 --- a/src/gui/widget/hourglass.h +++ b/src/gui/widget/hourglass.h @@ -28,6 +28,8 @@ #include #include +#include + //! CHourglass shows a small image chain with timed order to visualize running processes or breaks. /*! CHourglass shows only a timer controlled image chain, CHourglassProc will run an additional process. @@ -78,8 +80,8 @@ class CHourGlass : public CComponentsShapeSquare * @see class CComponentsShapeSquare() */ - CHourGlass( const int x_pos, - const int y_pos, + CHourGlass( const int x_pos = CFrameBuffer::getInstance()->getScreenX() + OFFSET_INNER_MID, + const int y_pos = CFrameBuffer::getInstance()->getScreenY() + OFFSET_INNER_MID, const int w = 48, const int h = 48, const std::string &image_basename = "hourglass",