mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
消除编译错误
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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++);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user