V210 issue fix + correct packing
This commit is contained in:
@@ -37,7 +37,7 @@ func Run(ctx context.Context, inst *mxl.Instance, cfg Config) (runErr error) {
|
||||
|
||||
var staticFrame []byte
|
||||
if !pattern.dynamic {
|
||||
frameSize := int(cfg.Width()*cfg.Height()) * 8 / 3
|
||||
frameSize := generator.V210FrameSize(int(cfg.Width()), int(cfg.Height()))
|
||||
staticFrame = make([]byte, frameSize)
|
||||
|
||||
if err := gen.GenerateFrame(staticFrame, 0); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user