Homebrew consoleInit(): Displays nothing if not used; displays weird triangle if used

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,290
Country
United States
This is what it looks like if I specified:

Code:
consoleInit(GFX_TOP, &topScreen);

XEk6vh1.png


tRzOS5f.jpg


I know consoleInit() will change the frame buffer format to 16-bit, thus creating this glitched out triangle.

However, when I changed consoleInit() so that it outputs messages on the bottom screen, and I specifically do not do anything to the top screen, I get nothing:

LtnwIrK.png


I pretty certain it will be the same if I run this on my n3DS.

May I ask what is wrong with my code? Thanks in advance.



Main.cpp:

http://hastebin.com/ohorehikux.avrasm

Engine.cpp:

http://hastebin.com/iwutifozuj.coffee
 
Last edited by delete12345,

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
It didn't work
Did you replace gfxSwapBuffers with gfxSwapBuffersGPU, because the only reason I see for that black screen is a double buffering problem unless the app crashed. You can try disabling double buffering with gfxSetDoubleBuffering(GFX_TOP, false);
 

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,290
Country
United States
Yes I did. Still no dice.

EDIT: Apparently, just re-ordering gfxSwapBuffers[Gpu]() and gfxFlushBuffers() around makes the triangle appear!

ds67C8c.jpg


Sorry for the large image size. I have no idea how to scale them down.
 
Last edited by delete12345,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    MysticStarlight @ MysticStarlight: night night