diff options
author | QMK Bot <hello@qmk.fm> | 2022-07-02 03:23:21 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-07-02 03:23:21 +0000 |
commit | 3def7b98d41b9e19fe987528061cb0008e06a6b5 (patch) | |
tree | 74681f1f515d6a342d0eaf630d34106853acf091 /quantum | |
parent | b67ae67687b00ffb11ef9c4652e7f7f77b0c7b6d (diff) | |
parent | c8fbfca1b614cbe74b1c30aeb1c2c02d5ebe0458 (diff) | |
download | qmk_firmware-3def7b98d41b9e19fe987528061cb0008e06a6b5.tar.gz qmk_firmware-3def7b98d41b9e19fe987528061cb0008e06a6b5.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/painter/qp_draw_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/quantum/painter/qp_draw_core.c b/quantum/painter/qp_draw_core.c index c31c734132..309ef93dd0 100644 --- a/quantum/painter/qp_draw_core.c +++ b/quantum/painter/qp_draw_core.c @@ -20,17 +20,17 @@ _Static_assert((QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE > 0) && (QUANTUM_PAINTER_PIX // // Buffer used for transmitting native pixel data to the downstream device. -uint8_t qp_internal_global_pixdata_buffer[QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE]; +__attribute__((__aligned__(4))) uint8_t qp_internal_global_pixdata_buffer[QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE]; // Static buffer to contain a generated color palette -static bool generated_palette = false; -static int16_t generated_steps = -1; -static qp_pixel_t interpolated_fg_hsv888; -static qp_pixel_t interpolated_bg_hsv888; +static bool generated_palette = false; +static int16_t generated_steps = -1; +__attribute__((__aligned__(4))) static qp_pixel_t interpolated_fg_hsv888; +__attribute__((__aligned__(4))) static qp_pixel_t interpolated_bg_hsv888; #if QUANTUM_PAINTER_SUPPORTS_256_PALETTE -qp_pixel_t qp_internal_global_pixel_lookup_table[256]; +__attribute__((__aligned__(4))) qp_pixel_t qp_internal_global_pixel_lookup_table[256]; #else -qp_pixel_t qp_internal_global_pixel_lookup_table[16]; +__attribute__((__aligned__(4))) qp_pixel_t qp_internal_global_pixel_lookup_table[16]; #endif //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |