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:
committed by
Carlos R. Mafra
parent
0526ddfc54
commit
4576b5bf1e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user