小调整

This commit is contained in:
Liu Chao
2015-05-20 22:08:03 +08:00
parent cd5c79a6ad
commit 0da4fa2c2d
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -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
+4 -4
View File
@@ -112,7 +112,7 @@ static void $(Update)(void)
for( j=0; j<m; ++j ) {
p_rect = (LCUI_Rect*)LinkedList_Get( &rlist );
paint = Surface_BeginPaint( p_sr->surface, 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;
+3 -3
View File
@@ -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 );