Cleanup DeviceSource and PatternSource (no feature change)

This commit is contained in:
brunoherbelin
2020-09-25 21:20:24 +02:00
parent 202db9eaa2
commit 7109b94484
7 changed files with 153 additions and 125 deletions

View File

@@ -364,7 +364,7 @@ void ImGuiVisitor::visit (PatternSource& s)
{
for (int p = 0; p < Pattern::pattern_types.size(); ++p){
if (ImGui::Selectable( Pattern::pattern_types[p].c_str() )) {
s.setPattern(p);
s.setPattern(p, s.pattern()->resolution());
}
}
ImGui::EndCombo();