diff --git a/components/rtgui/common/dc_hw.c b/components/rtgui/common/dc_hw.c index bf07cceed32fb6ab6f524bc558593951090961d9..013a07d377c0cceb49bcd3f00aec8cab8e4e07cf 100644 --- a/components/rtgui/common/dc_hw.c +++ b/components/rtgui/common/dc_hw.c @@ -201,7 +201,7 @@ static rt_bool_t rtgui_dc_hw_fini(struct rtgui_dc* dc) /* send to server to end drawing */ struct rtgui_event_update_end eupdate; RTGUI_EVENT_UPDATE_END_INIT(&(eupdate)); - eupdate.rect = RTGUI_WIDGET(top)->extent; + eupdate.rect = hw->owner->extent; rtgui_thread_send(top->server, (struct rtgui_event*)&eupdate, sizeof(eupdate)); #endif