From d18fc34b0deadc1fcc7da893a3b430303bc6073e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 29 Sep 2014 12:26:36 +0400 Subject: [PATCH] gui/moviebrowser.cpp: try to fix footer position Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fb5dddc3f5fa54efd57fa7cb98b1c6f150af4180 Author: [CST] Focus Date: 2014-09-29 (Mon, 29 Sep 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/moviebrowser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 3704dfb50..a1c82ed7b 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -1633,11 +1633,10 @@ int CMovieBrowser::refreshFoot(bool show) }; int cnt = sizeof(footerButtons) / sizeof(button_label_ext); - int h; - int res = paintButtons(footerButtons, cnt, 0, 0, 0, 0, 0, false, NULL, &h); if (show) - paintButtons(footerButtons + offset, cnt - offset, m_cBoxFrame.iX+m_cBoxFrameFootRel.iX, m_cBoxFrame.iHeight - h, m_cBoxFrameFootRel.iWidth, h, m_cBoxFrameFootRel.iWidth); - return res; + return paintButtons(footerButtons + offset, cnt - offset, m_cBoxFrame.iX+m_cBoxFrameFootRel.iX, m_cBoxFrame.iY+m_cBoxFrameFootRel.iY, m_cBoxFrameFootRel.iWidth, m_cBoxFrameFootRel.iHeight, m_cBoxFrameFootRel.iWidth); + else + return paintButtons(footerButtons, cnt, 0, 0, 0, 0, 0, false, NULL, NULL); } bool CMovieBrowser::onButtonPress(neutrino_msg_t msg)