Patch level : 4.0
Files correlati : xi Ricompilazione Demo : [ ] Commento : resa piu' efficiente e leggibile BOOLEAN xi_get_native_controls( XI_OBJ * obj ) git-svn-id: svn://10.65.10.50/trunk@15999 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
004ee4cb62
commit
baa150a7a6
21
xi/xiutils.c
21
xi/xiutils.c
@ -3948,18 +3948,17 @@ xi_draw_foc_and_dflt_if_necessary( XI_OBJ * focus_obj, XI_OBJ * next_obj )
|
||||
BOOLEAN
|
||||
xi_get_native_controls( XI_OBJ * obj )
|
||||
{
|
||||
|
||||
if ( obj->type != XIT_BTN )
|
||||
return ( BOOLEAN ) xi_get_pref( XI_PREF_NATIVE_CTRLS );
|
||||
|
||||
switch ( obj->v.btn->draw_as )
|
||||
if ( obj->type == XIT_BTN )
|
||||
{
|
||||
case XIBT_EMULATED:
|
||||
return FALSE;
|
||||
case XIBT_NATIVE:
|
||||
return TRUE;
|
||||
default:
|
||||
break;
|
||||
switch ( obj->v.btn->draw_as )
|
||||
{
|
||||
case XIBT_EMULATED:
|
||||
return FALSE;
|
||||
case XIBT_NATIVE:
|
||||
return TRUE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ( BOOLEAN ) xi_get_pref( XI_PREF_NATIVE_CTRLS );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user