]> Chaos Git - corbenik/ctrulib.git/commitdiff
allow for extenstion beyond 256 characters
authorDave Murphy <davem@devkitpro.org>
Tue, 6 Jan 2015 12:28:16 +0000 (12:28 +0000)
committerDave Murphy <davem@devkitpro.org>
Tue, 6 Jan 2015 12:28:16 +0000 (12:28 +0000)
libctru/include/3ds/console.h
libctru/source/console.c

index 48c7224ea0767bdec825e5cd6b5f30a15e5267b8..816eb026351ed665b031430b34bd8e70bc0c1ee0 100644 (file)
@@ -23,7 +23,7 @@ consoleInit()
 extern "C" {\r
 #endif\r
 \r
-typedef bool(* ConsolePrint)(void* con, char c);\r
+typedef bool(* ConsolePrint)(void* con, int c);\r
 \r
 //! a font struct for the console.\r
 typedef struct ConsoleFont\r
index c6469f29e25c9d9d53dbc296ff06cd8d02f80942..699f83a8fc3ad946e8c55c541493c793729dc819 100644 (file)
@@ -43,7 +43,7 @@ PrintConsole defaultConsole =
        {\r
                (u8*)default_font_bin, //font gfx\r
                0, //first ascii character in the set\r
-               128 //number of characters in the font set\r
+               256 //number of characters in the font set\r
        },\r
        (u16*)NULL,\r
        0,0,    //cursorX cursorY\r
@@ -68,7 +68,7 @@ PrintConsole* currentConsole = &currentCopy;
 \r
 PrintConsole* consoleGetDefault(void){return &defaultConsole;}\r
 \r
-void consolePrintChar(char c);\r
+void consolePrintChar(int c);\r
 void consoleDrawChar(int c);\r
 \r
 //---------------------------------------------------------------------------------\r
@@ -672,7 +672,7 @@ void consoleDrawChar(int c) {
 }\r
 \r
 //---------------------------------------------------------------------------------\r
-void consolePrintChar(char c) {\r
+void consolePrintChar(int c) {\r
 //---------------------------------------------------------------------------------\r
        if (c==0) return;\r
 \r