消除编译错误

This commit is contained in:
Liu Chao
2016-03-28 20:02:48 +08:00
parent 61da38e373
commit 5a14759c8c
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ void Background_Init( LCUI_Background *bg )
bg->position.value = SV_AUTO;
}
typedef void(*MixerPtr)(LCUI_Graph*, const LCUI_Graph*, int, int);
typedef int(*MixerPtr)(LCUI_Graph*, const LCUI_Graph*, int, int);
void Graph_DrawBackground( LCUI_PaintContext paint, const LCUI_Rect *box,
LCUI_Background *bg )
+2 -1
View File
@@ -442,8 +442,9 @@ int Widget_PostSurfaceEvent( LCUI_Widget w, int event_type )
return Widget_PostEvent( root, &e, *((int**)n), NULL );
}
static unsigned int Dict_KeyHash( const wchar_t *buf )
static unsigned int Dict_KeyHash( const void *key )
{
const char *buf = key;
unsigned int hash = 5381;
while( *buf ) {
hash = ((hash << 5) + hash) + (*buf++);
+2 -3
View File
@@ -274,16 +274,15 @@ int LCUIKeyboard_GetKey( void )
#ifdef LCUI_KEYBOARD_DRIVER_LINUX
static LCUI_BOOL LCUIKeyboard_Proc(void)
{
LCUI_SysEvent e;
LCUI_SysEventRec e;
/* 如果没有按键输入 */
if ( !LCUIKeyboard_IsHit() ) {
return FALSE;
}
e.type = LCUI_KEYDOWN;
e.type_name = NULL;
e.key_code = LCUIKeyboard_GetKey();
LCUI_PostEvent( &e );
LCUI_TriggerEvent( &e );
return TRUE;
}
#endif