Fixed OS EventHandler compilation issue

This commit is contained in:
Ryzerth
2021-05-03 02:08:49 +02:00
parent 6e4f502454
commit c6c15a446b
17 changed files with 121 additions and 63 deletions

View File

@ -69,6 +69,18 @@ void FrequencySelect::decrementDigit(int i) {
digits[i]--;
}
else {
if (i == 0) { return; }
// Check if there are non zero digits afterwards
bool otherNoneZero = false;
for (int j = i - 1; j >= 0; j--) {
if (digits[j] > 0) {
otherNoneZero = true;
break;
}
}
if (!otherNoneZero) { return; }
digits[i] = 9;
decrementDigit(i - 1);
}

View File

@ -7,6 +7,7 @@
#include <volk/volk.h>
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
#include <utils/color.h>
float DEFAULT_COLOR_MAP[][3] = {
{0x00, 0x00, 0x20},