Fix the auto-lights preview when dragging the color slider being dimmer than the actual auto-lights.
This commit is contained in:
parent
2c07942478
commit
6e09b2ea53
@ -334,12 +334,17 @@ namespace smx_config
|
|||||||
{
|
{
|
||||||
for( int i = 0; i < 16; ++i )
|
for( int i = 0; i < 16; ++i )
|
||||||
{
|
{
|
||||||
cmd.Write( color[iPanel*3+0] );
|
// Auto-lights colors in the config packet are scaled so the firmware
|
||||||
cmd.Write( color[iPanel*3+1] );
|
// doesn't have to do it, but here we're setting the panel color to
|
||||||
cmd.Write( color[iPanel*3+2] );
|
// the auto-light color directly to preview the color. SetLights
|
||||||
|
// will apply the scaling, so we need to remove it.
|
||||||
|
cmd.Write( Helpers.UnscaleColor(color[iPanel*3+0]) );
|
||||||
|
cmd.Write( Helpers.UnscaleColor(color[iPanel*3+1]) );
|
||||||
|
cmd.Write( Helpers.UnscaleColor(color[iPanel*3+2]) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SMX.SMX.SetLights(cmd.Get());
|
SMX.SMX.SetLights(cmd.Get());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user