From b70bac51edef451d3b7bf5b142639b45c9e3f6b8 Mon Sep 17 00:00:00 2001 From: dimok789 Date: Wed, 2 Mar 2016 20:30:47 +0100 Subject: [PATCH] added console output on TV --- src/main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main.c b/src/main.c index c7972e3..49ccb9b 100644 --- a/src/main.c +++ b/src/main.c @@ -55,19 +55,10 @@ void console_printf(const char *format, ...) { if(consoleArray[i]) { - //! TODO: find out why TV screen is distorted - //OSScreenPutFontEx(0, 0, i, consoleArray[i]); + OSScreenPutFontEx(0, 0, i, consoleArray[i]); OSScreenPutFontEx(1, 0, i, consoleArray[i]); } } - - unsigned int screen_buf0_size = OSScreenGetBufferSizeEx(0); - unsigned int screen_buf1_size = OSScreenGetBufferSizeEx(1); - - // Flush the cache - DCFlushRange((void *)0xF4000000, screen_buf0_size); - DCFlushRange((void *)0xF4000000 + screen_buf0_size, screen_buf1_size); - OSScreenFlipBuffersEx(0); OSScreenFlipBuffersEx(1); } @@ -121,8 +112,7 @@ int Menu_Main(void) OSScreenSetBufferEx(0, (void *)0xF4000000); OSScreenSetBufferEx(1, (void *)(0xF4000000 + screen_buf0_size)); - //! TODO: find out why TV screen is distorted, for now TV is disabled - OSScreenEnableEx(0, 0); + OSScreenEnableEx(0, 1); OSScreenEnableEx(1, 1); // Clear screens