aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIPanelContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUIPanelContainer.cpp')
-rw-r--r--guilib/GUIPanelContainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GUIPanelContainer.cpp b/guilib/GUIPanelContainer.cpp
index 9fd012c81e..cd5bd88287 100644
--- a/guilib/GUIPanelContainer.cpp
+++ b/guilib/GUIPanelContainer.cpp
@@ -120,7 +120,7 @@ void CGUIPanelContainer::Render()
bool CGUIPanelContainer::OnAction(const CAction &action)
{
- switch (action.actionId)
+ switch (action.GetID())
{
case ACTION_PAGE_UP:
{
@@ -151,7 +151,7 @@ bool CGUIPanelContainer::OnAction(const CAction &action)
// smooth scrolling (for analog controls)
case ACTION_SCROLL_UP:
{
- m_analogScrollCount += action.amount1 * action.amount1;
+ m_analogScrollCount += action.GetAmount() * action.GetAmount();
bool handled = false;
while (m_analogScrollCount > AnalogScrollSpeed())
{
@@ -171,7 +171,7 @@ bool CGUIPanelContainer::OnAction(const CAction &action)
break;
case ACTION_SCROLL_DOWN:
{
- m_analogScrollCount += action.amount1 * action.amount1;
+ m_analogScrollCount += action.GetAmount() * action.GetAmount();
bool handled = false;
while (m_analogScrollCount > AnalogScrollSpeed())
{