1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

Info Panel: display proper number of colors in deepcolor env

Instead of displaying a number of unitary colors in 10bit env,
display a more human readable message.
This commit is contained in:
David Maciejak
2023-03-13 21:18:21 +08:00
committed by Carlos R. Mafra
parent 0526ddfc54
commit 4576b5bf1e

View File

@@ -1383,6 +1383,10 @@ void wShowInfoPanel(WScreen *scr)
case 32:
strbuf = wstrappend(strbuf, _("(16 million colors)\n"));
break;
case 30:
case 40:
strbuf = wstrappend(strbuf, _("(1 billion colors)\n"));
break;
default:
snprintf(buffer, sizeof(buffer), _("(%d colors)\n"), 1 << scr->w_depth);
strbuf = wstrappend(strbuf, buffer);