From b874056ad2e616f3bc389e8fa3cfe23a6791c0f0 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sat, 3 Nov 2012 00:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0LCUI=5FGraph.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LCUI_Graph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LCUI_Graph.c b/src/LCUI_Graph.c index 6c106914..9a5f9c5a 100644 --- a/src/LCUI_Graph.c +++ b/src/LCUI_Graph.c @@ -418,9 +418,9 @@ void Graph_Copy(LCUI_Graph *des, LCUI_Graph *src) if( Graph_Valid(src) ) { if( Graph_Have_Alpha(src) ) { - des->have_alpha = IS_TRUE; + des->have_alpha = TRUE; } else { - des->have_alpha = IS_FALSE; + des->have_alpha = FALSE; } /* 创建合适尺寸的Graph */ Graph_Create(des, src->width, src->height); @@ -449,9 +449,9 @@ void Graph_Free(LCUI_Graph *pic) p = Get_Quote_Graph(pic); if(Graph_Valid(p)) { Graph_Lock(p, 1); - if(pic->quote == IS_TRUE) { + if( pic->quote ) { pic->src = NULL; - pic->quote = IS_FALSE; + pic->quote = FALSE; } else { free(pic->rgba[0]); free(pic->rgba[1]);