devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to 'de-init' console?

mkst opened this issue · comments

Might not be a valid workflow, but I'm currently switching the bottom screen into 'console mode' when someone taps the bottom screen, and then trying to exit the console mode when the user is done interacting with the console.

I've tried setting the following:

                gfxSetScreenFormat(GFX_BOTTOM, GSP_RGBA8_OES);
                gfxSetDoubleBuffering(GFX_BOTTOM, true);

which I believe are the default values(?). I must be missing something because the graphics are screwed up on the bottom screen - grey and repeated multiple times. I've gone through all the possible screen formats to no avail.

Am I doing something wrong (likely) or is this not supported behaviour (which is OK, I'll just have to turn the console interaction into a C3D-friendly menu instead.

As an aside, shouldn't the firstConsoleInit boolean be declared outside of the function?

//---------------------------------------------------------------------------------
PrintConsole* consoleInit(gfxScreen_t screen, PrintConsole* console) {
//---------------------------------------------------------------------------------

	static bool firstConsoleInit = true;

	if(firstConsoleInit) {

Closing as 'wont-fix' based on the comment from fincs here.