From 19ec8c9502ab6a71e04c6e7c84e1426c2aa326c4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Feb 2016 14:05:53 -0800 Subject: [PATCH 1/2] Enable UV prescaling by default. Fixes #4583. It's been relatively stable since #8283. --- Core/Config.cpp | 2 +- UI/GameSettingsScreen.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 89b515b550..77f0087626 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -725,7 +725,7 @@ static ConfigSetting debuggerSettings[] = { }; static ConfigSetting speedHackSettings[] = { - ReportedConfigSetting("PrescaleUV", &g_Config.bPrescaleUV, false, true, true), + ReportedConfigSetting("PrescaleUVCoords", &g_Config.bPrescaleUV, true, true, true), ReportedConfigSetting("DisableAlphaTest", &g_Config.bDisableAlphaTest, false, true, true), ConfigSetting(false), diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index fb586e4591..9b14fe20a2 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -301,8 +301,6 @@ void GameSettingsScreen::CreateViews() { CheckBox *depthWrite = graphicsSettings->Add(new CheckBox(&g_Config.bAlwaysDepthWrite, gr->T("Always Depth Write"))); depthWrite->SetDisabledPtr(&g_Config.bSoftwareRendering); - graphicsSettings->Add(new CheckBox(&g_Config.bPrescaleUV, gr->T("Texture Coord Speedhack"))); - static const char *bloomHackOptions[] = { "Off", "Safe", "Balanced", "Aggressive" }; PopupMultiChoice *bloomHack = graphicsSettings->Add(new PopupMultiChoice(&g_Config.iBloomHack, gr->T("Lower resolution for effects (reduces artifacts)"), bloomHackOptions, 0, ARRAY_SIZE(bloomHackOptions), gr->GetName(), screenManager())); bloomHackEnable_ = !g_Config.bSoftwareRendering && (g_Config.iInternalResolution != 1); From 0ea8cc9753af7fbe96aa7f469488746a112190fd Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Feb 2016 14:07:21 -0800 Subject: [PATCH 2/2] Minor const cleanup. --- Core/HLE/sceKernelModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 79adae43e8..a9cbd5bbb4 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1219,10 +1219,10 @@ static Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, bool fromT u8 unknown2; }; - u32_le *entPos = (u32_le *)Memory::GetPointer(modinfo->libent); - u32_le *entEnd = (u32_le *)Memory::GetPointer(modinfo->libentend); + const u32_le *entPos = (u32_le *)Memory::GetPointer(modinfo->libent); + const u32_le *entEnd = (u32_le *)Memory::GetPointer(modinfo->libentend); for (int m = 0; entPos < entEnd; ++m) { - PspLibEntEntry *ent = (PspLibEntEntry *)entPos; + const PspLibEntEntry *ent = (const PspLibEntEntry *)entPos; entPos += ent->size; if (ent->size == 0) { WARN_LOG_REPORT(LOADER, "Invalid export entry size %d", ent->size);