对比度和亮度设置6个刻度

This commit is contained in:
gb 2022-09-24 14:37:15 +08:00
parent 1e56c23fcb
commit 86bcadd095
1 changed files with 2 additions and 0 deletions

View File

@ -2077,6 +2077,7 @@ void huagao_ds::init_support_caps(void)
initf = trans_range((float)init, (float)l, (float)u, -1000.0f, 1000.0f);
switch (msg) {
case Msg::Get:
sf = 333.333f;
data = Capability::createRange<CapType::IBrightness>(Fix32(-1000.0f), Fix32(1000.0f), Fix32(sf), Fix32(nf), Fix32(initf));
return success();
case Msg::GetCurrent:
@ -2111,6 +2112,7 @@ void huagao_ds::init_support_caps(void)
initf = trans_range((float)init, (float)l, (float)u, -1000.0f, 1000.0f);
switch (msg) {
case Msg::Get:
sf = 333.333f;
data = Capability::createRange<CapType::IContrast>(Fix32(-1000.0f), Fix32(1000.0f), Fix32(sf), Fix32(nf), Fix32(initf));
return success();
case Msg::GetCurrent: