From 615f7cd43db27d55bb0f6dcdd2fdc19632601800 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sat, 1 Mar 2014 18:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/LCUI/font/textstyle.h | 3 +-- src/font/textstyle.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/LCUI/font/textstyle.h b/include/LCUI/font/textstyle.h index 80f6350b..cb8b0899 100755 --- a/include/LCUI/font/textstyle.h +++ b/include/LCUI/font/textstyle.h @@ -23,8 +23,7 @@ typedef enum font_decoration { }; -typedef struct _LCUI_TextStyle -{ +typedef struct _LCUI_TextStyle { LCUI_BOOL _family:1; LCUI_BOOL _style:1; LCUI_BOOL _weight:1; diff --git a/src/font/textstyle.c b/src/font/textstyle.c index 24cdf8ad..d9cd062e 100755 --- a/src/font/textstyle.c +++ b/src/font/textstyle.c @@ -104,21 +104,21 @@ TextStyle_FontBackColor( LCUI_TextStyle *style, LCUI_RGB color ) /* 设置字体样式 */ LCUI_API void -TextStyle_FontStyle( LCUI_TextStyle *style, enum_font_style fontstyle ) +TextStyle_FontStyle( LCUI_TextStyle *style, enum font_style fontstyle ) { style->style = fontstyle; style->_style = TRUE; } LCUI_API void -TextStyle_FontWeight( LCUI_TextStyle *style, enum_font_weight fontweight ) +TextStyle_FontWeight( LCUI_TextStyle *style, enum font_weight fontweight ) { style->weight = fontweight; style->_weight = TRUE; } LCUI_API void -TextStyle_FontDecoration( LCUI_TextStyle *style, enum_font_decoration decoration ) +TextStyle_FontDecoration( LCUI_TextStyle *style, enum font_decoration decoration ) /* 设置字体下划线 */ { style->decoration = decoration;