瀏覽代碼

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
bernard.xiong 15 年之前
父節點
當前提交
298a15f31a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/rtgui/common/dc_hw.c

+ 1 - 1
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