还是没法处理亮度,试试加一个处理检测存档类型的看看

This commit is contained in:
anod 2022-10-17 13:40:35 +08:00
parent bf184e29b7
commit c0888e885b

View File

@ -161,17 +161,18 @@ static atp_pageopt_t config_adjust( atp_callerdata_t data, atp_counter_t index,
if( l || x ) if( l || x )
{ {
light -= 10; light -= 10;
if( light % 10 ) light = light + (10-light%10); if( light % 10 ) light += 10 - light%10;
} }
else if( r || y ) else if( r || y )
{ {
light += 10; light += 10;
if( light % 10 ) light = light - light % 10; if( light % 10 ) light -= light % 10;
} }
if( light > LIGHT_MAX ) light = LIGHT_MAX; if( light > LIGHT_MAX ) light = LIGHT_MAX;
else if( light < LIGHT_MIN ) light = LIGHT_MIN; else if( light < LIGHT_MIN ) light = LIGHT_MIN;
g_oafConfig.backlight = light; g_oafConfig.backlight = light;
} }
g_oafConfig.saveOverride = !g_oafConfig.saveOverride;
return ATP_PAGE_UPDATE; return ATP_PAGE_UPDATE;
} }