diff options
author | pieh <grajen3@o2.pl> | 2011-05-12 18:34:04 +0200 |
---|---|---|
committer | pieh <grajen3@o2.pl> | 2011-05-12 18:34:04 +0200 |
commit | 5d8be2add97c41742578f56b60309fdcbfa71478 (patch) | |
tree | af939f02520cdf15e3cbce0bd9703b0b20984b50 | |
parent | 4b180170ce14106004e725a6b7e9214dac414468 (diff) |
rounding value reported to page control by CGUITextBox
-rw-r--r-- | xbmc/guilib/GUITextBox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/guilib/GUITextBox.cpp b/xbmc/guilib/GUITextBox.cpp index a04d9b03b8..55c046e714 100644 --- a/xbmc/guilib/GUITextBox.cpp +++ b/xbmc/guilib/GUITextBox.cpp @@ -23,6 +23,7 @@ #include "utils/CharsetConverter.h" #include "GUIInfoManager.h" #include "tinyXML/tinyxml.h" +#include "utils/MathUtils.h" using namespace std; @@ -210,7 +211,7 @@ void CGUITextBox::Render() if (m_pageControl) { - CGUIMessage msg(GUI_MSG_ITEM_SELECT, GetID(), m_pageControl, offset); + CGUIMessage msg(GUI_MSG_ITEM_SELECT, GetID(), m_pageControl, MathUtils::round_int(m_scrollOffset / m_itemHeight)); SendWindowMessage(msg); } CGUIControl::Render(); |