From 147a8867ffc81644ec0bacf5b259c51eb77c65ea Mon Sep 17 00:00:00 2001 From: cdozdil Date: Mon, 2 Jun 2025 23:44:33 +0300 Subject: [PATCH] Fix formatting --- OptiScaler/dllmain.cpp | 4 ++-- OptiScaler/hooks/HooksDx.cpp | 2 +- OptiScaler/menu/menu_common.cpp | 11 +++++------ OptiScaler/proxies/IGDExt_Proxy.h | 3 +-- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/OptiScaler/dllmain.cpp b/OptiScaler/dllmain.cpp index 11cce79d..61aaf9f2 100644 --- a/OptiScaler/dllmain.cpp +++ b/OptiScaler/dllmain.cpp @@ -802,7 +802,7 @@ static void CheckWorkingMode() if (igdext == nullptr) { auto paths = GetDriverStore(); - + for (size_t i = 0; i < paths.size(); i++) { auto dllPath = paths[i] / L"igdext64.dll"; @@ -1187,4 +1187,4 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv } return TRUE; -} \ No newline at end of file +} diff --git a/OptiScaler/hooks/HooksDx.cpp b/OptiScaler/hooks/HooksDx.cpp index 9365f5bf..be274441 100644 --- a/OptiScaler/hooks/HooksDx.cpp +++ b/OptiScaler/hooks/HooksDx.cpp @@ -1555,7 +1555,7 @@ static void HookToDevice(ID3D12Device* InDevice) if (o_CreatePlacedResource != nullptr) DetourAttach(&(PVOID&) o_CreatePlacedResource, hkCreatePlacedResource); - // This does not work but luckily + // This does not work but luckily // UE works without Intel Extension for it // if (o_GetResourceAllocationInfo != nullptr) // DetourAttach(&(PVOID&) o_GetResourceAllocationInfo, hkGetResourceAllocationInfo); diff --git a/OptiScaler/menu/menu_common.cpp b/OptiScaler/menu/menu_common.cpp index 66addccb..60b90e65 100644 --- a/OptiScaler/menu/menu_common.cpp +++ b/OptiScaler/menu/menu_common.cpp @@ -3167,12 +3167,11 @@ bool MenuCommon::RenderMenu() if (currentFeature != nullptr) { - ImGui::Text("Output Scaling is %s, Target Res: %dx%d\nJitter Count: %d", - Config::Instance()->OutputScalingEnabled.value_or_default() ? "ENABLED" - : "DISABLED", - (uint32_t) (currentFeature->DisplayWidth() * _ssRatio), - (uint32_t) (currentFeature->DisplayHeight() * _ssRatio), - currentFeature->JitterCount()); + ImGui::Text( + "Output Scaling is %s, Target Res: %dx%d\nJitter Count: %d", + Config::Instance()->OutputScalingEnabled.value_or_default() ? "ENABLED" : "DISABLED", + (uint32_t) (currentFeature->DisplayWidth() * _ssRatio), + (uint32_t) (currentFeature->DisplayHeight() * _ssRatio), currentFeature->JitterCount()); } ImGui::EndDisabled(); diff --git a/OptiScaler/proxies/IGDExt_Proxy.h b/OptiScaler/proxies/IGDExt_Proxy.h index d54deeb9..294e8f8f 100644 --- a/OptiScaler/proxies/IGDExt_Proxy.h +++ b/OptiScaler/proxies/IGDExt_Proxy.h @@ -209,7 +209,7 @@ class IGDExtProxy return false; INTCExtensionAppInfo1 appInfo {}; - + appInfo.pApplicationName = string_to_wstring(State::Instance().GameName.empty() ? State::Instance().GameExe : State::Instance().GameName) .c_str(); @@ -284,7 +284,6 @@ class IGDExtProxy } public: - static void Init(HMODULE module) { if (module == nullptr)