mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
Add WHBLogConsoleSetColor (#138)
This commit is contained in:
parent
05e45cc180
commit
27fbfd55fb
@ -19,6 +19,9 @@ WHBLogConsoleInit();
|
||||
void
|
||||
WHBLogConsoleFree();
|
||||
|
||||
void
|
||||
WHBLogConsoleSetColor(uint32_t color);
|
||||
|
||||
void
|
||||
WHBLogConsoleDraw();
|
||||
|
||||
|
@ -19,6 +19,7 @@ static int sLineNum = 0;
|
||||
static void *sBufferTV = NULL, *sBufferDRC = NULL;
|
||||
static uint32_t sBufferSizeTV = 0, sBufferSizeDRC = 0;
|
||||
static BOOL sConsoleHasForeground = TRUE;
|
||||
static uint32_t consoleColor = 0x993333FF;
|
||||
|
||||
static void
|
||||
ConsoleAddLine(const char *line)
|
||||
@ -96,6 +97,12 @@ WHBLogConsoleFree()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
WHBLogConsoleSetColor(uint32_t color)
|
||||
{
|
||||
consoleColor = color;
|
||||
}
|
||||
|
||||
void
|
||||
WHBLogConsoleDraw()
|
||||
{
|
||||
@ -103,8 +110,8 @@ WHBLogConsoleDraw()
|
||||
return;
|
||||
}
|
||||
|
||||
OSScreenClearBufferEx(SCREEN_TV, 0x993333FF);
|
||||
OSScreenClearBufferEx(SCREEN_DRC, 0x993333FF);
|
||||
OSScreenClearBufferEx(SCREEN_TV, consoleColor);
|
||||
OSScreenClearBufferEx(SCREEN_DRC, consoleColor);
|
||||
|
||||
for (int y = 0; y < NUM_LINES; ++y) {
|
||||
OSScreenPutFontEx(SCREEN_TV, 0, y, sConsoleBuffer[y]);
|
||||
|
Loading…
Reference in New Issue
Block a user