add select source behavior for new clock resolutions.

This commit is contained in:
2025-05-27 21:29:31 -07:00
parent 710e8292f1
commit 453527c541
2 changed files with 9 additions and 2 deletions

View File

@ -157,7 +157,12 @@ void HandleRotate(Direction dir, int val) {
break;
case 1:
app.selected_source = static_cast<Source>((app.selected_source + 1) % SOURCE_LAST);
if (static_cast<Source>(app.selected_source) == 0 && val < 0) {
app.selected_source = static_cast<Source>(SOURCE_LAST - 1);
} else {
app.selected_source = static_cast<Source>((app.selected_source + val) % SOURCE_LAST);
}
gravity.clock.SetSource(app.selected_source);
app.refresh_screen = true;
break;