mirror of
https://github.com/wiiu-env/homebrew_launcher.git
synced 2024-11-28 07:34:16 +01:00
fix for TV display of console applications that are using OSScreen functions
This commit is contained in:
parent
d0316ab885
commit
bb9a4c9d12
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@
|
|||||||
/sd_loader/*.elf
|
/sd_loader/*.elf
|
||||||
/udp_debug_reader/obj
|
/udp_debug_reader/obj
|
||||||
/udp_debug_reader/GeckoLog.txt
|
/udp_debug_reader/GeckoLog.txt
|
||||||
|
/installer/sd_loader.h
|
||||||
|
@ -197,4 +197,20 @@ void Application::executeThread(void)
|
|||||||
delete mainWindow;
|
delete mainWindow;
|
||||||
delete fontSystem;
|
delete fontSystem;
|
||||||
delete video;
|
delete video;
|
||||||
|
|
||||||
|
//!------------------------------------------------------------------------------------------------------------
|
||||||
|
//! TODO: This is ugly and I don't really like it but I didn't find a better way for this to work.
|
||||||
|
//! It seems its necessary. to make one frame with max resolution to fix console application display ratio.
|
||||||
|
//!------------------------------------------------------------------------------------------------------------
|
||||||
|
video = new CVideo(GX2_TV_SCAN_MODE_1080P, GX2_DRC_SINGLE);
|
||||||
|
video->prepareDrcRendering();
|
||||||
|
video->drcDrawDone();
|
||||||
|
video->prepareTvRendering();
|
||||||
|
video->tvDrawDone();
|
||||||
|
video->tvEnable(true);
|
||||||
|
video->drcEnable(true);
|
||||||
|
video->waitForVSync();
|
||||||
|
video->tvEnable(false);
|
||||||
|
video->drcEnable(false);
|
||||||
|
delete video;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user