summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index c9b250ee..24869e6a 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -45,18 +45,18 @@ void genericMouseButtonPressed(NC::Window &w, MEVENT me)
if (me.bstate & BUTTON2_PRESSED)
{
if (Config.mouse_list_scroll_whole_page)
- w.scroll(NC::wPageDown);
+ w.scroll(NC::Scroll::PageDown);
else
for (size_t i = 0; i < Config.lines_scrolled; ++i)
- w.scroll(NC::wDown);
+ w.scroll(NC::Scroll::Down);
}
else if (me.bstate & BUTTON4_PRESSED)
{
if (Config.mouse_list_scroll_whole_page)
- w.scroll(NC::wPageUp);
+ w.scroll(NC::Scroll::PageUp);
else
for (size_t i = 0; i < Config.lines_scrolled; ++i)
- w.scroll(NC::wUp);
+ w.scroll(NC::Scroll::Up);
}
}
@@ -65,12 +65,12 @@ void scrollpadMouseButtonPressed(NC::Scrollpad &w, MEVENT me)
if (me.bstate & BUTTON2_PRESSED)
{
for (size_t i = 0; i < Config.lines_scrolled; ++i)
- w.scroll(NC::wDown);
+ w.scroll(NC::Scroll::Down);
}
else if (me.bstate & BUTTON4_PRESSED)
{
for (size_t i = 0; i < Config.lines_scrolled; ++i)
- w.scroll(NC::wUp);
+ w.scroll(NC::Scroll::Up);
}
}