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
@ -3948,10 +3948,8 @@ xi_draw_foc_and_dflt_if_necessary( XI_OBJ * focus_obj, XI_OBJ * next_obj )
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
xi_get_native_controls( XI_OBJ * obj )
|
xi_get_native_controls( XI_OBJ * obj )
|
||||||
{
|
{
|
||||||
|
if ( obj->type == XIT_BTN )
|
||||||
if ( obj->type != XIT_BTN )
|
{
|
||||||
return ( BOOLEAN ) xi_get_pref( XI_PREF_NATIVE_CTRLS );
|
|
||||||
|
|
||||||
switch ( obj->v.btn->draw_as )
|
switch ( obj->v.btn->draw_as )
|
||||||
{
|
{
|
||||||
case XIBT_EMULATED:
|
case XIBT_EMULATED:
|
||||||
@ -3961,6 +3959,7 @@ xi_get_native_controls( XI_OBJ * obj )
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ( BOOLEAN ) xi_get_pref( XI_PREF_NATIVE_CTRLS );
|
return ( BOOLEAN ) xi_get_pref( XI_PREF_NATIVE_CTRLS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user