constexpr is invalid on is2D() (#4540)

* constexpr is invalid on is2D() (it does work on _V4 builds though)
This commit is contained in:
scourge411 2025-02-08 00:44:46 -07:00 committed by GitHub
parent 8c717537c4
commit 95a10c692c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -710,7 +710,7 @@ typedef struct Segment {
void wu_pixel(uint32_t x, uint32_t y, CRGB c);
inline void fill_solid(CRGB c) { fill(RGBW32(c.r,c.g,c.b,0)); }
#else
inline constexpr bool is2D() const { return false; }
inline bool is2D() const { return false; }
inline void setPixelColorXY(int x, int y, uint32_t c) { setPixelColor(x, c); }
inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) { setPixelColor(int(x), c); }
inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) { setPixelColor(x, RGBW32(r,g,b,w)); }