summaryrefslogtreecommitdiff
path: root/components/rtgui/widgets
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-06 09:10:13 +0000
committer[email protected] <[email protected]>2011-06-06 09:10:13 +0000
commit80da4b977588119a2e66566fb9a2e7a0c3588a62 (patch)
tree6d0f4b18be36779a0f6fdd9bfe83913026064f10 /components/rtgui/widgets
parent5284d6d52e39faefcf96dedad6695bb46d2d5579 (diff)
change to graphic device.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1459 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets')
-rw-r--r--components/rtgui/widgets/scrollbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/rtgui/widgets/scrollbar.c b/components/rtgui/widgets/scrollbar.c
index d611691cc7..5581ba0560 100644
--- a/components/rtgui/widgets/scrollbar.c
+++ b/components/rtgui/widgets/scrollbar.c
@@ -72,7 +72,7 @@ void rtgui_scrollbar_get_thumb_rect(rtgui_scrollbar_t *bar, rtgui_rect_t *rect)
/* vertical scroll bar */
rect->x1 = scrollbar_rect.x1;
- rect->x2 = scrollbar_rect.x2 - 1;
+ rect->x2 = scrollbar_rect.x2;
rect->y1 = scrollbar_rect.y1 + btn_width + _rtgui_scrollbar_get_thumb_position(bar);
rect->y2 = rect->y1 + btn_width;
}
@@ -85,7 +85,7 @@ void rtgui_scrollbar_get_thumb_rect(rtgui_scrollbar_t *bar, rtgui_rect_t *rect)
rect->x2 = rect->x1 + btn_height;
rect->y1 = scrollbar_rect.y1;
- rect->y2 = scrollbar_rect.y2 - 1;
+ rect->y2 = scrollbar_rect.y2;
}
}