Merge pull request #13 from jonspe/master

Fix 3440x1440 resolution pixelation issue
This commit is contained in:
rebtd7 2020-03-24 17:44:30 -03:00 committed by GitHub
commit 5884e42d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -126,7 +126,7 @@ void MainContext::FF13_InitializeGameAddresses()
}
void MainContext::FF13_OneTimeFixes() {
MainContext::FF13_Workaround_2560_1440_Res_Bug();
MainContext::FF13_Workaround_1440_Res_Bug();
MainContext::FF13_NOPIngameFrameRateLimitSetter();
MainContext::FF13_RemoveContinuousControllerScan();
MainContext::FF13_FixMissingEnemyScan();
@ -137,7 +137,7 @@ void MainContext::FF13_OneTimeFixes() {
context.didOneTimeFixes = true;
}
void MainContext::FF13_Workaround_2560_1440_Res_Bug()
void MainContext::FF13_Workaround_1440_Res_Bug()
{
if (*ff13_internal_res_w == 2560 && *ff13_internal_res_h == 1440) {
// We need to reduce one or another. Increasing the internal res causes crashes.
@ -145,6 +145,11 @@ void MainContext::FF13_Workaround_2560_1440_Res_Bug()
PrintLog("Applying workaround for resolution 2560x1440 bug.");
*ff13_internal_res_w = 2559;
}
else if (*ff13_internal_res_w == 3440 && *ff13_internal_res_h == 1440) {
// Fix ultrawide pixelation also.
PrintLog("Applying workaround for resolution 3440x1440 bug.");
*ff13_internal_res_w = 3439;
}
}

View File

@ -117,7 +117,7 @@ private:
static void FF13_AsyncPatching();
void FF13_InitializeGameAddresses();
void FF13_OneTimeFixes();
void FF13_Workaround_2560_1440_Res_Bug();
void FF13_Workaround_1440_Res_Bug();
void FF13_EnableControllerVibration();
void FF13_NOPIngameFrameRateLimitSetter();
void FF13_SetFrameRateVariables();