From 298a15f31adcba81e920933d0f05549e3cbfab3e Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 28 Apr 2010 15:17:38 +0000 Subject: [PATCH] fix rectangle update issue in the end of hardware dc drawing. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@677 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/common/dc_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rtgui/common/dc_hw.c b/components/rtgui/common/dc_hw.c index bf07cceed3..013a07d377 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