Merge pull request #13 from jonspe/master
Fix 3440x1440 resolution pixelation issue
This commit is contained in:
commit
5884e42d59
|
@ -126,7 +126,7 @@ void MainContext::FF13_InitializeGameAddresses()
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainContext::FF13_OneTimeFixes() {
|
void MainContext::FF13_OneTimeFixes() {
|
||||||
MainContext::FF13_Workaround_2560_1440_Res_Bug();
|
MainContext::FF13_Workaround_1440_Res_Bug();
|
||||||
MainContext::FF13_NOPIngameFrameRateLimitSetter();
|
MainContext::FF13_NOPIngameFrameRateLimitSetter();
|
||||||
MainContext::FF13_RemoveContinuousControllerScan();
|
MainContext::FF13_RemoveContinuousControllerScan();
|
||||||
MainContext::FF13_FixMissingEnemyScan();
|
MainContext::FF13_FixMissingEnemyScan();
|
||||||
|
@ -137,7 +137,7 @@ void MainContext::FF13_OneTimeFixes() {
|
||||||
context.didOneTimeFixes = true;
|
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) {
|
if (*ff13_internal_res_w == 2560 && *ff13_internal_res_h == 1440) {
|
||||||
// We need to reduce one or another. Increasing the internal res causes crashes.
|
// 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.");
|
PrintLog("Applying workaround for resolution 2560x1440 bug.");
|
||||||
*ff13_internal_res_w = 2559;
|
*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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ private:
|
||||||
static void FF13_AsyncPatching();
|
static void FF13_AsyncPatching();
|
||||||
void FF13_InitializeGameAddresses();
|
void FF13_InitializeGameAddresses();
|
||||||
void FF13_OneTimeFixes();
|
void FF13_OneTimeFixes();
|
||||||
void FF13_Workaround_2560_1440_Res_Bug();
|
void FF13_Workaround_1440_Res_Bug();
|
||||||
void FF13_EnableControllerVibration();
|
void FF13_EnableControllerVibration();
|
||||||
void FF13_NOPIngameFrameRateLimitSetter();
|
void FF13_NOPIngameFrameRateLimitSetter();
|
||||||
void FF13_SetFrameRateVariables();
|
void FF13_SetFrameRateVariables();
|
||||||
|
|
Loading…
Reference in a new issue