From 0da4fa2c2db8b4de4d4bdbd6f915af6c83eb02fb Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Wed, 20 May 2015 22:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/LCUI/misc/rect.h | 2 +- src/gui/widget_event.c | 2 +- src/output/graph_display.c | 8 ++++---- src/output/win32_surface.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/LCUI/misc/rect.h b/include/LCUI/misc/rect.h index dd994515..6e20d593 100755 --- a/include/LCUI/misc/rect.h +++ b/include/LCUI/misc/rect.h @@ -85,7 +85,7 @@ LCUI_API LCUI_BOOL LCUIRect_GetOverlayRect( const LCUI_Rect *a, * rect2 必须被 rect1 完全包含 */ LCUI_API void LCUIRect_CutFourRect( LCUI_Rect *rect1, LCUI_Rect *rect2, - LCUI_Rect rects[4] ); + LCUI_Rect rects[4] ); /** 初始化脏矩形记录 */ LCUI_API void DirtyRectList_Init( LCUI_DirtyRectList *list ); diff --git a/src/gui/widget_event.c b/src/gui/widget_event.c index 255c1977..d16b898f 100644 --- a/src/gui/widget_event.c +++ b/src/gui/widget_event.c @@ -191,7 +191,7 @@ int Widget_BindEvent( LCUI_Widget widget, const char *event_name, task->func = func; task->data = func_data; task->data_destroy = destroy_data; - _DEBUG_MSG("event: %s, task: %p\n", event_name, task); + DEBUG_MSG("event: %s, task: %p\n", event_name, task); return LCUIEventBox_Bind( widget->event, event_name, OnWidgetEvent, task, DestroyWidgetEventTask diff --git a/src/output/graph_display.c b/src/output/graph_display.c index 728a2a14..01ff424f 100755 --- a/src/output/graph_display.c +++ b/src/output/graph_display.c @@ -112,7 +112,7 @@ static void $(Update)(void) for( j=0; jsurface, p_rect ); - DEBUG_MSG( "%d-%d-%d-%d,%d\n", paint->rect.left, paint->rect.top, paint->rect.w, paint->rect.h, j ); + DEBUG_MSG( "[%s]: render rect: (%d,%d,%d,%d), %d\n", p_sr->widget->type_name, paint->rect.left, paint->rect.top, paint->rect.w, paint->rect.h, j ); Widget_Render( p_sr->widget, paint ); Surface_EndPaint( p_sr->surface, paint ); LinkedList_Delete( &rlist ); @@ -348,7 +348,7 @@ static void OnTopLevelWidgetEvent( LCUI_Widget w, LCUI_WidgetEvent *e, void *arg LCUI_Surface surface; LCUI_Rect *p_rect; - _DEBUG_MSG("tip, e_type = %d\n", e_type); + DEBUG_MSG("tip, e_type = %d\n", e_type); surface = $(GetBindSurface)( e->target ); if( display.mode == LDM_SEAMLESS ) { if( !surface && e_type != WET_ADD ) { @@ -381,12 +381,12 @@ static void OnTopLevelWidgetEvent( LCUI_Widget w, LCUI_WidgetEvent *e, void *arg Surface_SetCaptionW( surface, e->target->title ); break; case WET_RESIZE: - _DEBUG_MSG( "resize, w: %d, h: %d\n", p_rect->w, p_rect->h ); + DEBUG_MSG( "resize, w: %d, h: %d\n", p_rect->w, p_rect->h ); Surface_Resize( surface, p_rect->w, p_rect->h ); Widget_InvalidateArea( w, NULL, GRAPH_BOX ); break; case WET_MOVE: - _DEBUG_MSG( "x: %d, y: %d\n", p_rect->left, p_rect->top ); + DEBUG_MSG( "x: %d, y: %d\n", p_rect->left, p_rect->top ); Surface_Move( surface, p_rect->left, p_rect->top ); break; default: break; diff --git a/src/output/win32_surface.c b/src/output/win32_surface.c index 1ce5042c..f1da1be9 100644 --- a/src/output/win32_surface.c +++ b/src/output/win32_surface.c @@ -184,7 +184,7 @@ WndProc( HWND hwnd, UINT msg, WPARAM arg1, LPARAM arg2 ) LCUI_Surface surface; surface = GetSurfaceByHWND(hwnd); - _DEBUG_MSG( "surface: %p, msg: %d\n", surface, msg ); + DEBUG_MSG( "surface: %p, msg: %d\n", surface, msg ); if( !surface ) { return DefWindowProc( hwnd, msg, arg1, arg2 ); } @@ -423,7 +423,7 @@ static void Win32Surface_Present( LCUI_Surface surface ) { HDC hdc_client; RECT client_rect; - + DEBUG_MSG("tip\n"); hdc_client = GetDC( surface->hwnd ); SetBitmapBits( surface->fb_bmp, surface->fb.mem_size, surface->fb.bytes ); switch(surface->mode) { @@ -509,7 +509,7 @@ static void LCUISurface_Loop( void *args ) ); hdc_client = GetDC( surface->hwnd ); surface->fb_hdc = CreateCompatibleDC( hdc_client ); - _DEBUG_MSG("surface: %p, surface->hwnd: %p\n", surface, surface->hwnd); + DEBUG_MSG("surface: %p, surface->hwnd: %p\n", surface, surface->hwnd); continue; } TranslateMessage( &msg );