From 8300ea40abe4b5349fd7bdb0f4eab397040369ef Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Wed, 16 Apr 2014 17:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E9=81=BF=E5=85=8D=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E7=BB=98=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/widget/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/window.c b/src/gui/widget/window.c index 51c3f5af..f87f7de5 100644 --- a/src/gui/widget/window.c +++ b/src/gui/widget/window.c @@ -165,6 +165,7 @@ static void Window_OnInit( LCUI_Widget *window ) Widget_SetPadding( wnd->client_area, Padding(1,1,1,1) ); Widget_SetSize( wnd->titlebar, "100%", "35px" ); + Border_Init( &border ); border.top_width = 0; border.bottom_width = 1; border.left_width = 1; @@ -308,7 +309,7 @@ static void CloseButton_OnUpdate( LCUI_Widget *widget ) } else { color = RGB(255,0,0); } - + switch(widget->state) { case WIDGET_STATE_NORMAL: Graph_FillColor( &img, RGB(150,150,150) );