对比度和亮度设置6个刻度
This commit is contained in:
parent
1e56c23fcb
commit
86bcadd095
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue