Skip to content

Commit

Permalink
added console output on TV
Browse files Browse the repository at this point in the history
  • Loading branch information
dimok789 committed Mar 2, 2016
1 parent a77a09f commit b70bac5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b70bac5

Please sign in to comment.