Skip to content
2 changes: 1 addition & 1 deletion wled00/FX.h
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,6 @@ class Segment {
inline uint32_t getPixelColorXYRaw(unsigned x, unsigned y) const { auto XY = [](unsigned X, unsigned Y){ return X + Y*Segment::vWidth(); }; return pixels[XY(x,y)]; };
#endif
void resetIfRequired(); // sets all SEGENV variables to 0 and clears data buffer
void loadPalette(CRGBPalette16 &tgt, uint8_t pal);

// transition functions
void stopTransition(); // ends transition mode by destroying transition structure (does nothing if not in transition)
Expand Down Expand Up @@ -653,6 +652,7 @@ class Segment {
inline static unsigned vHeight() { return Segment::_vHeight; }
inline static uint32_t getCurrentColor(unsigned i) { return Segment::_currentColors[i<NUM_COLORS?i:0]; }
inline static const CRGBPalette16 &getCurrentPalette() { return Segment::_currentPalette; }
void loadPalette(CRGBPalette16 &tgt, uint8_t pal);

inline void setDrawDimensions() const { Segment::_vWidth = virtualWidth(); Segment::_vHeight = virtualHeight(); Segment::_vLength = virtualLength(); }

Expand Down
Loading