summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2019-11-21 17:24:28 +0000
committerdakkar <dakkar@thenautilus.net>2019-11-21 17:24:28 +0000
commit995067eabe8c386e9f8f9088a7d0f03535f4bf30 (patch)
tree81ba7c4bd65aa7a29b2a9353a641de5f307c757e
parentswitch to linear addressing (diff)
downloadkeyboardio-model01-995067eabe8c386e9f8f9088a7d0f03535f4bf30.tar.gz
keyboardio-model01-995067eabe8c386e9f8f9088a7d0f03535f4bf30.tar.bz2
keyboardio-model01-995067eabe8c386e9f8f9088a7d0f03535f4bf30.zip
stop using deprecated macros
-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"