From 0a3bb7bcadc0c63d5dfdf7ac22a4e650cdd9ad58 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 6 Jan 2015 12:28:16 +0000 Subject: [PATCH] allow for extenstion beyond 256 characters --- libctru/include/3ds/console.h | 2 +- libctru/source/console.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libctru/include/3ds/console.h b/libctru/include/3ds/console.h index 48c7224..816eb02 100644 --- a/libctru/include/3ds/console.h +++ b/libctru/include/3ds/console.h @@ -23,7 +23,7 @@ consoleInit() extern "C" { #endif -typedef bool(* ConsolePrint)(void* con, char c); +typedef bool(* ConsolePrint)(void* con, int c); //! a font struct for the console. typedef struct ConsoleFont diff --git a/libctru/source/console.c b/libctru/source/console.c index c6469f2..699f83a 100644 --- a/libctru/source/console.c +++ b/libctru/source/console.c @@ -43,7 +43,7 @@ PrintConsole defaultConsole = { (u8*)default_font_bin, //font gfx 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, 0,0, //cursorX cursorY @@ -68,7 +68,7 @@ PrintConsole* currentConsole = ¤tCopy; PrintConsole* consoleGetDefault(void){return &defaultConsole;} -void consolePrintChar(char c); +void consolePrintChar(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;