Advertisement
svenhoefer

Untitled

Sep 26th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.36 KB | None | 0 0
  1. diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp
  2. index e930924..7d80710 100644
  3. --- a/src/gui/widget/menue.cpp
  4. +++ b/src/gui/widget/menue.cpp
  5. @@ -1330,7 +1330,10 @@ void CMenuWidget::setMenuPos(const int& menu_width)
  6.         int scr_y = frameBuffer->getScreenY();
  7.         int scr_w = frameBuffer->getScreenWidth();
  8.         int scr_h = frameBuffer->getScreenHeight();
  9. -       int real_h = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
  10. +       int hint_h = 0;
  11. +       if (hint_height)
  12. +               hint_h = OFFSET_INTER + hint_height + OFFSET_SHADOW;
  13. +       int real_h = full_height + hint_h; // full_height includes footer_height : see calcSize
  14.         int x_old = x;
  15.         int y_old = y;
  16.         //configured positions
  17. @@ -1450,7 +1453,10 @@ void CMenuWidget::saveScreen()
  18.                 return;
  19.  
  20.         delete[] background;
  21. -       saveScreen_height = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
  22. +       int hint_h = 0;
  23. +       if (hint_height)
  24. +               hint_h = OFFSET_INTER + hint_height + OFFSET_SHADOW;
  25. +       saveScreen_height = full_height + hint_h; // full_height includes footer_height : see calcSize
  26.         saveScreen_width = full_width;
  27.         saveScreen_y = y;
  28.         saveScreen_x = x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement