src/display.cpp

changeset 51
d8042bff0e00
parent 46
a4a007b3c42e
child 53
74e85b34d26b
--- a/src/display.cpp	Tue Nov 10 22:21:35 2020 +0100
+++ b/src/display.cpp	Tue Nov 10 22:22:16 2020 +0100
@@ -234,11 +234,14 @@
 }
 
 
-void Display::set_flag(uint8_t flag, bool show=true)
+void Display::set_flag(uint8_t flag, bool show, bool dimm)
 {
 	uint8_t i;
 	uint8_t bgcolor = 0x00, fgcolor = 0xFF;
 
+	if (dimm)
+		fgcolor /= 2;
+
 	for (uint8_t l=0; l<(sizeof(flags)/sizeof(flags[0])); ++l)
 	{
 		if (flag == flags[l].flag)

mercurial