summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2011-09-21 10:11:47 +0000
committerbernard.xiong <[email protected]>2011-09-21 10:11:47 +0000
commita397fef958ce2ef31ca0a2021b1e6044eb1220a4 (patch)
treed579a91f4e175080861a2ef98343ff0f88b61ded
parent6f6903688b56909df0253893a43e832e4dcadf08 (diff)
fixed parameters check in rtgui_dc_draw_annulus function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1718 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/rtgui/common/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rtgui/common/dc.c b/components/rtgui/common/dc.c
index 5c7d130037..9979668c66 100644
--- a/components/rtgui/common/dc.c
+++ b/components/rtgui/common/dc.c
@@ -906,7 +906,7 @@ void rtgui_dc_draw_annulus(struct rtgui_dc *dc, rt_int16_t x, rt_int16_t y, rt_i
rt_int16_t temp_val = 0;
/* Sanity check radius */
- if ((r1 < 0) || (r1 < 0)) return ;
+ if ((r1 < 0) || (r2 < 0)) return ;
/* Special case for r=0 - draw a point */
if ((r1 == 0) && (r2 == 0))
{