Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp
- index e930924..7d80710 100644
- --- a/src/gui/widget/menue.cpp
- +++ b/src/gui/widget/menue.cpp
- @@ -1330,7 +1330,10 @@ void CMenuWidget::setMenuPos(const int& menu_width)
- int scr_y = frameBuffer->getScreenY();
- int scr_w = frameBuffer->getScreenWidth();
- int scr_h = frameBuffer->getScreenHeight();
- - int real_h = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
- + int hint_h = 0;
- + if (hint_height)
- + hint_h = OFFSET_INTER + hint_height + OFFSET_SHADOW;
- + int real_h = full_height + hint_h; // full_height includes footer_height : see calcSize
- int x_old = x;
- int y_old = y;
- //configured positions
- @@ -1450,7 +1453,10 @@ void CMenuWidget::saveScreen()
- return;
- delete[] background;
- - saveScreen_height = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
- + int hint_h = 0;
- + if (hint_height)
- + hint_h = OFFSET_INTER + hint_height + OFFSET_SHADOW;
- + saveScreen_height = full_height + hint_h; // full_height includes footer_height : see calcSize
- saveScreen_width = full_width;
- saveScreen_y = y;
- saveScreen_x = x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement