1
0
Fork 0

Codechange: Turn GREY_SCALE macro into constexpr function.

pull/14037/head
frosch 2025-04-17 16:40:53 +02:00 committed by frosch
parent 8f335a84cf
commit c2c5dae760
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void SetColourGradient(Colours colour, ColourShade shade, uint8_t palette_colour
* @param level Intensity, 0 = black, 15 = white
* @return colour
*/
#define GREY_SCALE(level) (level)
constexpr uint8_t GREY_SCALE(uint8_t level) { return level; }
static const uint8_t PC_BLACK = GREY_SCALE(1); ///< Black palette colour.
static const uint8_t PC_DARK_GREY = GREY_SCALE(6); ///< Dark grey palette colour.