fix preview flickering when sending out DDP or art-net
BusNetwork stores original colors (not modified by global brightness), so `restoreColorLossy(strip.getPixelColor(i), stripBrightness);` was actually restoring brightness twice when running network output. This lead to preview flickering.
This commit is contained in:
@@ -262,8 +262,8 @@ static bool sendLiveLedsWs(uint32_t wsClient) // WLEDMM added "static"
|
||||
if ((i/Segment::maxWidth)%(n)) i += Segment::maxWidth * (n-1);
|
||||
}
|
||||
#endif
|
||||
uint32_t c = restoreColorLossy(strip.getPixelColor(i), stripBrightness); // WLEDMM full bright preview - does _not_ recover ABL reductions
|
||||
//uint32_t c = strip.getPixelColorRestored(i);
|
||||
//uint32_t c = restoreColorLossy(strip.getPixelColor(i), stripBrightness); // WLEDMM full bright preview - does _not_ recover ABL reductions
|
||||
uint32_t c = strip.getPixelColorRestored(i);
|
||||
// WLEDMM begin: preview with color gamma correction
|
||||
if (gammaCorrectPreview) {
|
||||
uint8_t w = W(c); // not sure why, but it looks better if using "white" without corrections
|
||||
|
||||
Reference in New Issue
Block a user