summaryrefslogtreecommitdiff
path: root/src/ui/scrollwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/scrollwidget.c')
-rw-r--r--src/ui/scrollwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c
index 1be62bb8..1961677b 100644
--- a/src/ui/scrollwidget.c
+++ b/src/ui/scrollwidget.c
@@ -41,7 +41,7 @@ static iRect thumbRect_ScrollWidget_(const iScrollWidget *d) {
41 const int tsize = thumbSize_ScrollWidget_(d); 41 const int tsize = thumbSize_ScrollWidget_(d);
42 const int tpos = 42 const int tpos =
43 iClamp((float) d->thumb / (float) total, 0, 1) * (height_Rect(bounds) - tsize); 43 iClamp((float) d->thumb / (float) total, 0, 1) * (height_Rect(bounds) - tsize);
44 rect.pos.y = tpos; 44 rect.pos.y = bounds.pos.y + tpos;
45 rect.size.y = tsize; 45 rect.size.y = tsize;
46 } 46 }
47 return rect; 47 return rect;