Fix additional mapping expansion locations
This commit is contained in:
@@ -723,6 +723,13 @@ class Segment {
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
inline unsigned rawLength() const { // returns length of used raw pixel buffer (eg. get/setPixelColorRaw())
|
||||
#ifndef WLED_DISABLE_2D
|
||||
if (is2D()) return virtualWidth() * virtualHeight();
|
||||
#endif
|
||||
return virtualLength();
|
||||
}
|
||||
|
||||
#ifndef WLED_DISABLE_2D
|
||||
inline bool is2D() const { return (width()>1 && height()>1); }
|
||||
[[gnu::hot]] void setPixelColorXY(int x, int y, uint32_t c) const; // set relative pixel within segment with color
|
||||
|
||||
Reference in New Issue
Block a user