minor code cleanup

* removed dead code
* prevent promotion to double
* made constants constexpr
* made some methods const
* fixed a few typo's
This commit is contained in:
Frank
2024-12-04 22:18:39 +01:00
parent 102d098e28
commit 972257a7ee
4 changed files with 46 additions and 76 deletions

View File

@@ -429,7 +429,6 @@ typedef struct Segment {
// WLEDMM cache some values that won't change while drawing a frame
bool _isValid2D = false;
uint8_t _brightness = 255; // final pixel brightness - including transitions and segment opacity
bool _firstFill = true; // dirty HACK support
uint16_t _2dWidth = 0; // virtualWidth
uint16_t _2dHeight = 0; // virtualHeight
uint16_t _virtuallength = 0; // virtualLength