allow for extenstion beyond 256 characters

This commit is contained in:
Dave Murphy 2015-01-06 12:28:16 +00:00
parent 93de4971bd
commit 0a3bb7bcad
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ consoleInit()
extern "C" { extern "C" {
#endif #endif
typedef bool(* ConsolePrint)(void* con, char c); typedef bool(* ConsolePrint)(void* con, int c);
//! a font struct for the console. //! a font struct for the console.
typedef struct ConsoleFont typedef struct ConsoleFont

View File

@ -43,7 +43,7 @@ PrintConsole defaultConsole =
{ {
(u8*)default_font_bin, //font gfx (u8*)default_font_bin, //font gfx
0, //first ascii character in the set 0, //first ascii character in the set
128 //number of characters in the font set 256 //number of characters in the font set
}, },
(u16*)NULL, (u16*)NULL,
0,0, //cursorX cursorY 0,0, //cursorX cursorY
@ -68,7 +68,7 @@ PrintConsole* currentConsole = &currentCopy;
PrintConsole* consoleGetDefault(void){return &defaultConsole;} PrintConsole* consoleGetDefault(void){return &defaultConsole;}
void consolePrintChar(char c); void consolePrintChar(int c);
void consoleDrawChar(int c); void consoleDrawChar(int c);
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
@ -672,7 +672,7 @@ void consoleDrawChar(int c) {
} }
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
void consolePrintChar(char c) { void consolePrintChar(int c) {
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
if (c==0) return; if (c==0) return;