mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 14:53:30 +08:00
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
This commit is contained in:
parent
6f6903688b
commit
a397fef958
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user