diff options
| -rw-r--r-- | apps/gui/scrollbar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 6f7928f..b9038d9 100644 --- a/apps/gui/scrollbar.c +++ b/apps/gui/scrollbar.c @@ -71,8 +71,7 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y, /* avoid overflows */ while (items > (INT_MAX / inner_len)) { items >>= 1; - min >>= 1; - max >>= 1; + range >>= 1; } /* calc start and end of the knob */ |