Skip to content

Commit

Permalink
Changed gfxSwapBuffers() to gfxSwapBuffersGpu() in consoleInit(). Thi…
Browse files Browse the repository at this point in the history
…s fixes the black-screen issue with the text-console on certain systems(such as old3ds v9.0-v9.2).
  • Loading branch information
yellows8 committed Oct 27, 2015
1 parent ca356af commit 76e47c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libctru/source/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ PrintConsole* consoleInit(gfxScreen_t screen, PrintConsole* console) {

gfxSetScreenFormat(screen,GSP_RGB565_OES);
gfxSetDoubleBuffering(screen,false);
gfxSwapBuffers();
gfxSwapBuffersGpu();
gspWaitForVBlank();

console->frameBuffer = (u16*)gfxGetFramebuffer(screen, GFX_LEFT, NULL, NULL);
Expand Down

6 comments on commit 76e47c0

@neumaennl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that this lead to text-console black screen on new 3DS XL with 10.2?
Because I just built GameYob and all its dependencies from source and the bottom screen, which is a console screen, is black.

@profi200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is supposed to fix it. Are you sure you use the latest version? GameYob does not use the console anymore since ctrcommon switched to GPU rendering.

@neumaennl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built it yesterday.
In fact I just installed devkitARM yesterday, checked out ctrulib, built and installed it, then checked out citrus, built and installed that and then I checked out and built GameYob.

@profi200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not affect GameYob but not sure. Maybe @Steveice10 can say something to the problem.

@neumaennl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried reverting this commit and building again. Still the same result, so this commit is not the culprit.

@neumaennl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is that this only happens for new builds. I am on *hax 2.5 and the latest GameYob release works fine. Only when I build it myself and all the dependencies I get the black screen.

Please sign in to comment.