dspspy: just some more cleanup

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3420 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-06-13 05:53:07 +00:00
parent b304332469
commit c1b18457c4
2 changed files with 46 additions and 38 deletions

View File

@ -53,7 +53,7 @@ void CON_Printf(int x, int y, const char* fmt, ...)
printf("\x1b[%d;%dH%s", y, x, tmpbuf);
}
void CON_SetColor(u8 foreground, u8 background = 0)
void CON_SetColor(u8 foreground, u8 background = CON_BLACK)
{
u8 bright = foreground & CON_BRIGHT ? 1 : 0;
@ -63,4 +63,10 @@ void CON_SetColor(u8 foreground, u8 background = 0)
printf("\x1b[%d;%d;%dm", 30+foreground, bright, 40+background);
}
void CON_Clear()
{
// Escape code to clear the whole screen.
printf("\x1b[2J");
}
#endif