File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 32
32
#include "core.h" // enums and structs
33
33
#include "arch/arch.h" // Do NOT include this in any other source files
34
34
#include <stddef.h>
35
+ #include <stdlib.h>
35
36
#include <string.h>
36
37
37
38
// Overall matrix refresh rate (frames/second) is a function of matrix width
@@ -935,12 +936,13 @@ __attribute__((noinline)) void _PM_convert_565_byte(Protomatter_core *core,
935
936
936
937
// Work from bottom tile to top, because data is issued in that order
937
938
for (int8_t tile = abs (core -> tile ) - 1 ; tile >= 0 ; tile -- ) {
938
- uint16_t * upperSrc , * lowerSrc ; // Canvas scanline pointers
939
+ const uint16_t * upperSrc , * lowerSrc ; // Canvas scanline pointers
939
940
int16_t srcIdx ;
940
941
int8_t srcInc ;
941
942
942
943
// Source pointer to tile's upper-left pixel
943
- uint16_t * srcTileUL = source + tile * width * core -> numRowPairs * 2 ;
944
+ const uint16_t * srcTileUL =
945
+ source + tile * width * core -> numRowPairs * 2 ;
944
946
if ((tile & 1 ) && (core -> tile < 0 )) {
945
947
// Special handling for serpentine tiles
946
948
lowerSrc = srcTileUL + width * (core -> numRowPairs - 1 - row );
You can’t perform that action at this time.
0 commit comments