From 72dd33d73666fa1ae47bd5f6731503b1a90924de Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Sat, 7 Mar 2026 16:48:36 +0100 Subject: [PATCH] Get screen resolution from game settings --- StyxBladesOfGreed/dllmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StyxBladesOfGreed/dllmain.cpp b/StyxBladesOfGreed/dllmain.cpp index b259eca..e451da8 100644 --- a/StyxBladesOfGreed/dllmain.cpp +++ b/StyxBladesOfGreed/dllmain.cpp @@ -327,10 +327,10 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime) { // Fix status if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) { - ImGui::Text("Screen width: %d, height: %d, aspect ratio: %.2f", screenWidth, screenHeight, aspectRatio); if (GetGameInfos) { GameInfos infos{}; GetGameInfos(&infos); + ImGui::Text("Screen width: %d, height: %d, aspect ratio: %.2f", infos.screenWidth, infos.screenHeight, infos.aspectRatio); if (infos.consoleEnabled) ImGui::Text("Console enabled and bound to key F2"); ImGui::TextColored(ImColor(48, 179, 25), "FOV In: %.2f, Compensated: %.2f, Out: %.2f", infos.FOVIn, infos.CompensatedFOV, infos.FOVOut);