Added compensated FOV info
This commit is contained in:
@@ -22,6 +22,7 @@ static SetBoolFn SetVignettingFixEnabled = nullptr;
|
|||||||
static SetBoolFn SetFogFixEnabled = nullptr;
|
static SetBoolFn SetFogFixEnabled = nullptr;
|
||||||
static SetIntFn SetFOV = nullptr;
|
static SetIntFn SetFOV = nullptr;
|
||||||
static GetFloatFn GetFOVIn = nullptr;
|
static GetFloatFn GetFOVIn = nullptr;
|
||||||
|
static GetFloatFn GetCompensadedFOV = nullptr;
|
||||||
static GetFloatFn GetFOVOut = nullptr;
|
static GetFloatFn GetFOVOut = nullptr;
|
||||||
|
|
||||||
// Plugin variables for checkboxes and sliders
|
// Plugin variables for checkboxes and sliders
|
||||||
@@ -72,6 +73,7 @@ static void LoadFixDLL()
|
|||||||
SetFogFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFogFixEnabled");
|
SetFogFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFogFixEnabled");
|
||||||
SetFOV = (SetIntFn)GetProcAddress(fixLib, "SetFOV");
|
SetFOV = (SetIntFn)GetProcAddress(fixLib, "SetFOV");
|
||||||
GetFOVIn = (GetFloatFn)GetProcAddress(fixLib, "GetFOVIn");
|
GetFOVIn = (GetFloatFn)GetProcAddress(fixLib, "GetFOVIn");
|
||||||
|
GetCompensadedFOV = (GetFloatFn)GetProcAddress(fixLib, "GetCompensatedFOV");
|
||||||
GetFOVOut = (GetFloatFn)GetProcAddress(fixLib, "GetFOVOut");;
|
GetFOVOut = (GetFloatFn)GetProcAddress(fixLib, "GetFOVOut");;
|
||||||
|
|
||||||
// Apply initial values loaded from settings
|
// Apply initial values loaded from settings
|
||||||
@@ -275,7 +277,7 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
|||||||
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true);
|
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true);
|
||||||
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
|
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||||
ImGui::SetCursorPos(ImVec2(5, 30));
|
ImGui::SetCursorPos(ImVec2(5, 30));
|
||||||
ImGui::Text("FOV In: %.2f, Out : %.2f", GetFOVIn(), GetFOVOut());
|
ImGui::Text("FOV In: %.2f, Compensated : %.2f, Out : %.2f", GetFOVIn(), GetCompensadedFOV(), GetFOVOut());
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user