summaryrefslogtreecommitdiffstats
path: root/src/wins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wins.c')
-rwxr-xr-xsrc/wins.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wins.c b/src/wins.c
index f76bc36..b15d5b4 100755
--- a/src/wins.c
+++ b/src/wins.c
@@ -1,4 +1,4 @@
-/* $calcurse: wins.c,v 1.17 2008/09/20 12:47:06 culot Exp $ */
+/* $calcurse: wins.c,v 1.18 2008/11/23 20:38:56 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -170,18 +170,18 @@ wins_scrollwin_display (scrollwin_t *sw)
}
void
-wins_scrollwin_up (scrollwin_t *sw)
+wins_scrollwin_up (scrollwin_t *sw, int amount)
{
if (sw->first_visible_line > 0)
- sw->first_visible_line--;
+ sw->first_visible_line -= amount;
}
void
-wins_scrollwin_down (scrollwin_t *sw)
+wins_scrollwin_down (scrollwin_t *sw, int amount)
{
if (sw->total_lines
> (sw->first_visible_line + sw->win.h - sw->pad.y - 1))
- sw->first_visible_line++;
+ sw->first_visible_line += amount;
}
/*