aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DakkarColor.h2
-rw-r--r--keymap-wrapper.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/DakkarColor.h b/DakkarColor.h
index 71d858f..2165764 100644
--- a/DakkarColor.h
+++ b/DakkarColor.h
@@ -16,7 +16,7 @@ public:
} vf;
};
- typedef const uint8_t (*color_index_map)[ROWS*COLS];
+ typedef const uint8_t (*color_index_map)[Kaleidoscope.device().matrix_rows * Kaleidoscope.device().matrix_columns];
typedef const colorSrc *color_src_array;
DakkarColor(
diff --git a/keymap-wrapper.h b/keymap-wrapper.h
index 89909cb..87326ca 100644
--- a/keymap-wrapper.h
+++ b/keymap-wrapper.h
@@ -16,7 +16,7 @@
#define CK(k,c) c
#define ColorKeymaps(layers...) \
- static constexpr uint8_t color_keymaps[][ROWS*COLS] = { layers };
+ static constexpr uint8_t color_keymaps[][Kaleidoscope.device().matrix_rows * Kaleidoscope.device().matrix_columns] = { layers };
#include "keymaps.h"