mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 17:40:22 +00:00
remove compiling warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@714 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -158,7 +158,7 @@ static rt_bool_t rtgui_dc_hw_fini(struct rtgui_dc* dc)
|
||||
rtgui_toplevel_t* top = RTGUI_TOPLEVEL(hw->owner->toplevel);
|
||||
|
||||
top->drawing --;
|
||||
if (top->drawing == 0)
|
||||
if ((top->drawing == 0) && (hw->visible == RT_TRUE))
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
#ifdef RTGUI_USING_MOUSE_CURSOR
|
||||
@@ -186,7 +186,7 @@ static rt_bool_t rtgui_dc_hw_fini(struct rtgui_dc* dc)
|
||||
rtgui_toplevel_t* top = RTGUI_TOPLEVEL(hw->owner->toplevel);
|
||||
top->drawing --;
|
||||
|
||||
if (top->drawing == 0)
|
||||
if ((top->drawing == 0) && (hw->visible == RT_TRUE))
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
#ifdef RTGUI_USING_MOUSE_CURSOR
|
||||
@@ -208,7 +208,6 @@ static rt_bool_t rtgui_dc_hw_fini(struct rtgui_dc* dc)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return RT_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user