diff options
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r-- | src/ui/listwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index 1f5572bd..dbd8e540 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -165,7 +165,7 @@ void setScrollPos_ListWidget(iListWidget *d, int pos) { | |||
165 | refresh_Widget(as_Widget(d)); | 165 | refresh_Widget(as_Widget(d)); |
166 | } | 166 | } |
167 | 167 | ||
168 | void scrollOffset_ListWidget(iListWidget *d, int offset) { | 168 | iBool scrollOffset_ListWidget(iListWidget *d, int offset) { |
169 | const int oldScroll = d->scrollY; | 169 | const int oldScroll = d->scrollY; |
170 | d->scrollY += offset; | 170 | d->scrollY += offset; |
171 | if (d->scrollY < 0) { | 171 | if (d->scrollY < 0) { |
@@ -180,7 +180,9 @@ void scrollOffset_ListWidget(iListWidget *d, int offset) { | |||
180 | } | 180 | } |
181 | updateVisible_ListWidget(d); | 181 | updateVisible_ListWidget(d); |
182 | refresh_Widget(as_Widget(d)); | 182 | refresh_Widget(as_Widget(d)); |
183 | return iTrue; | ||
183 | } | 184 | } |
185 | return iFalse; | ||
184 | } | 186 | } |
185 | 187 | ||
186 | void scrollToItem_ListWidget(iListWidget *d, size_t index) { | 188 | void scrollToItem_ListWidget(iListWidget *d, size_t index) { |