Skip to content

Commit

Permalink
Fixes for latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 7, 2023
1 parent 67ae2c4 commit c5ad74b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions VortexEditor/VortexEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ void VortexEditor::handleMenus(uintptr_t hMenu)
return;
}
// TODO seed me properly?
Random ctx(time(NULL));
Random ctx((uint32_t)time(NULL));
Colorset newSet;
switch (menu) {
case ID_COLORSET_RANDOM_COMPLIMENTARY:
newSet.randomizeComplimentary(ctx);
applyColorset(newSet, sels);
break;
case ID_COLORSET_RANDOM_MONOCHROMATIC:
newSet.randomizeMonochromatic(ctx);
newSet.randomizeColors(ctx, 0, Colorset::ColorMode::MONOCHROMATIC);
applyColorset(newSet, sels);
break;
case ID_COLORSET_RANDOM_TRIADIC:
Expand Down Expand Up @@ -905,6 +905,7 @@ void VortexEditor::pull(VWindow *window)
debug("Couldn't read anything");
return;
}
Vortex::matchLedCount(stream);
Vortex::setModes(stream);
// now send the done message
port->writeData(EDITOR_VERB_PULL_MODES_DONE);
Expand Down
2 changes: 1 addition & 1 deletion VortexEditor/VortexEngine

0 comments on commit c5ad74b

Please sign in to comment.