mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-23 11:24:34 -05:00
Fix displaying the config menu on games which run in native 1080p
This commit is contained in:
@@ -537,6 +537,8 @@ void ConfigUtils::displayMenu() {
|
||||
}
|
||||
}
|
||||
|
||||
#define __SetDCPitchReg ((void (*)(uint32_t, uint32_t))(0x101C400 + 0x1e714))
|
||||
|
||||
void ConfigUtils::openConfigMenu() {
|
||||
bool wasHomeButtonMenuEnabled = OSIsHomeButtonMenuEnabled();
|
||||
|
||||
@@ -547,6 +549,11 @@ void ConfigUtils::openConfigMenu() {
|
||||
void *screenbuffer0 = MEMAllocFromMappedMemoryForGX2Ex(screen_buf0_size, 0x100);
|
||||
void *screenbuffer1 = MEMAllocFromMappedMemoryForGX2Ex(screen_buf1_size, 0x100);
|
||||
|
||||
// Fix the TV buffer pitch if a 1080p buffer is used.
|
||||
if (screen_buf0_size == 0x00FD2000) {
|
||||
__SetDCPitchReg(SCREEN_TV, 1920);
|
||||
}
|
||||
|
||||
bool skipScreen0Free = false;
|
||||
bool skipScreen1Free = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user