From 6946fc178f93eb321cfb748a006ed705d520c4ed Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Tue, 5 Feb 2013 16:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=89=93=E5=8D=B0DEBUG?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/messagebox.c | 8 +++----- src/kernel/main.c | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/gui/messagebox.c b/src/gui/messagebox.c index 4ee16a74..e47970b5 100644 --- a/src/gui/messagebox.c +++ b/src/gui/messagebox.c @@ -104,12 +104,10 @@ msgbox_mainloop_quit( LCUI_Widget *btn, LCUI_WidgetEvent *unused ) MB_data *data; msgbox = Widget_GetParent( btn, "window" ); - _DEBUG_MSG("msgbox: %p\n", msgbox); data = msgbox_data_find( msgbox ); if( !data ) { return; } - _DEBUG_MSG("btn: %p, id: %ld\n", btn, btn->self_id); data->clicked_button = btn->self_id; LCUI_MainLoop_Quit( data->mainloop ); } @@ -146,18 +144,18 @@ auto_resize_msgbox(LCUI_Widget *textlabel, LCUI_WidgetEvent *event ) area_height = MB_MSG_AREA_HEIGHT; } - _DEBUG_MSG("area_height: %d\n", area_height); + DEBUG_MSG("area_height: %d\n", area_height); /* 加上按钮区域的固定高度 */ msgbox_size.h = area_height + MB_BTN_AREA_HEIGHT; /* 加上窗口边框尺寸 */ msgbox_size.w += 14; msgbox_size.h += 30; - _DEBUG_MSG("widget: %p, old size: (%d,%d), new size: (%d,%d)\n", + DEBUG_MSG("widget: %p, old size: (%d,%d), new size: (%d,%d)\n", textlabel, event->resize.old_size.w, event->resize.old_size.h, event->resize.new_size.w, event->resize.new_size.h); - _DEBUG_MSG("msgbox size: (%d,%d)\n", msgbox_size.w, msgbox_size.h); + DEBUG_MSG("msgbox size: (%d,%d)\n", msgbox_size.w, msgbox_size.h); /* 获取消息框内的消息区域的指针 */ msg_area = Widget_GetChildByID( Window_GetClientArea(msgbox), diff --git a/src/kernel/main.c b/src/kernel/main.c index acdf00b3..42e82571 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -329,7 +329,7 @@ int LCUI_MainLoop_Run( LCUI_MainLoop *loop ) printf("%s(): %s", __FUNCTION__, APP_ERROR_UNRECORDED_APP); return -1; } - _DEBUG_MSG("loop: %p, enter\n", loop); + DEBUG_MSG("loop: %p, enter\n", loop); loop->running = TRUE; while( !loop->quit ) { if( LCUIApp_HaveTask(app) ) { @@ -343,7 +343,7 @@ int LCUI_MainLoop_Run( LCUI_MainLoop *loop ) } } loop->running = FALSE; - _DEBUG_MSG("loop: %p, exit\n", loop); + DEBUG_MSG("loop: %p, exit\n", loop); return 0; }