From 995067eabe8c386e9f8f9088a7d0f03535f4bf30 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 21 Nov 2019 17:24:28 +0000 Subject: stop using deprecated macros --- DakkarColor.h | 2 +- keymap-wrapper.h | 2 +- 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" -- cgit v1.2.3