refactor(kernel): change color arrays to static

This commit is contained in:
EnderIce2 2025-04-17 16:01:40 +00:00
parent e270c9f35b
commit bcc2c9d0ab
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E
3 changed files with 4 additions and 6 deletions

View File

@ -27,7 +27,7 @@
namespace KernelConsole
{
int TermColors[] = {
static int TermColors[] = {
[TerminalColor::BLACK] = 0x000000,
[TerminalColor::RED] = 0xAA0000,
[TerminalColor::GREEN] = 0x00AA00,
@ -38,7 +38,7 @@ namespace KernelConsole
[TerminalColor::GREY] = 0xAAAAAA,
};
int TermBrightColors[] = {
static int TermBrightColors[] = {
[TerminalColor::BLACK] = 0x858585,
[TerminalColor::RED] = 0xFF5555,
[TerminalColor::GREEN] = 0x55FF55,

View File

@ -52,7 +52,7 @@ void *FbBeforePanic = nullptr;
size_t FbPagesBeforePanic = 0;
FontRenderer CrashFontRenderer;
int ExTermColors[] = {
static int ExTermColors[] = {
[TerminalColor::BLACK] = 0x000000,
[TerminalColor::RED] = 0xAA0000,
[TerminalColor::GREEN] = 0x00AA00,
@ -63,7 +63,7 @@ int ExTermColors[] = {
[TerminalColor::GREY] = 0xAAAAAA,
};
int ExTermBrightColors[] = {
static int ExTermBrightColors[] = {
[TerminalColor::BLACK] = 0x858585,
[TerminalColor::RED] = 0xFF5555,
[TerminalColor::GREEN] = 0x55FF55,

View File

@ -155,8 +155,6 @@ namespace KernelConsole
*/
extern ConsoleTerminal *Terminals[16];
extern std::atomic<ConsoleTerminal *> CurrentTerminal;
extern int TermColors[];
extern int TermBrightColors[];
bool SetTheme(std::string Theme);