From 9163d46529ed08f897df6513c3172f2c50a3e3aa Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 3 Feb 2018 02:51:34 +0100 Subject: [PATCH] console changes --- include/console.h | 5 +++++ source/console.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/console.h b/include/console.h index 78aef52..6bfa700 100644 --- a/include/console.h +++ b/include/console.h @@ -2,6 +2,11 @@ #ifdef _3DS #include <3ds.h> +#elif defined(SWITCH) +#include +#endif + +#if defined(_3DS) || defined(SWITCH) #define ESC(x) "\x1b[" #x #define RESET ESC(0m) #define BLACK ESC(30m) diff --git a/source/console.c b/source/console.c index f0f53ca..0bed9b1 100644 --- a/source/console.c +++ b/source/console.c @@ -206,10 +206,10 @@ void console_init(void) { consoleInit(&status_console); - consoleSetWindow(&status_console, 0, 0, 50, 1); + consoleSetWindow(&status_console, 0, 0, 160+10, 1); consoleInit( &main_console); - consoleSetWindow(&main_console, 0, 1, 50, 29); + consoleSetWindow(&main_console, 0, 1, 160+10, 90-1); consoleSelect(&main_console); }