Skip to content

Commit 30435e6

Browse files
committed
2D compile fix
1 parent bd1c06a commit 30435e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wled00/FX.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ typedef struct Segment {
635635
#else
636636
inline uint16_t XY(uint16_t x, uint16_t y) { return x; }
637637
inline void setPixelColorXY(int x, int y, uint32_t c) { setPixelColor(x, c); }
638+
inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) { setPixelColor(int(x), c); }
638639
inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) { setPixelColor(x, RGBW32(r,g,b,w)); }
639640
inline void setPixelColorXY(int x, int y, CRGB c) { setPixelColor(x, RGBW32(c.r,c.g,c.b,0)); }
640641
inline void setPixelColorXY(float x, float y, uint32_t c, bool aa = true) { setPixelColor(x, c, aa); }

0 commit comments

Comments
 (0)