From 856f7161a861d8a842b00e4ed5b474b2f181954e Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 17 Feb 2010 10:45:16 +0000 Subject: [PATCH] fix hardware dc visible function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@417 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- rtgui/common/dc_hw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtgui/common/dc_hw.c b/rtgui/common/dc_hw.c index ab1b885195..e86ce332e5 100644 --- a/rtgui/common/dc_hw.c +++ b/rtgui/common/dc_hw.c @@ -423,9 +423,11 @@ static rt_int32_t rtgui_dc_hw_get_textalign(struct rtgui_dc* self) return dc->owner->gc.textalign; } -static rt_bool_t rtgui_dc_hw_get_visible(struct rtgui_dc* dc) +static rt_bool_t rtgui_dc_hw_get_visible(struct rtgui_dc* self) { - return RT_TRUE; + struct rtgui_dc_hw* dc = (struct rtgui_dc_hw*)self; + + return dc->visible; } static void rtgui_dc_hw_get_rect(struct rtgui_dc* self, rtgui_rect_t* rect)