mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
还是没法处理亮度,试试加一个处理检测存档类型的看看
This commit is contained in:
parent
bf184e29b7
commit
c0888e885b
@ -161,17 +161,18 @@ static atp_pageopt_t config_adjust( atp_callerdata_t data, atp_counter_t index,
|
||||
if( l || x )
|
||||
{
|
||||
light -= 10;
|
||||
if( light % 10 ) light = light + (10-light%10);
|
||||
if( light % 10 ) light += 10 - light%10;
|
||||
}
|
||||
else if( r || y )
|
||||
{
|
||||
light += 10;
|
||||
if( light % 10 ) light = light - light % 10;
|
||||
if( light % 10 ) light -= light % 10;
|
||||
}
|
||||
if( light > LIGHT_MAX ) light = LIGHT_MAX;
|
||||
else if( light < LIGHT_MIN ) light = LIGHT_MIN;
|
||||
g_oafConfig.backlight = light;
|
||||
}
|
||||
g_oafConfig.saveOverride = !g_oafConfig.saveOverride;
|
||||
return ATP_PAGE_UPDATE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user