From 7c24f53b115a7a326d95a5336c687f0d456dd501 Mon Sep 17 00:00:00 2001 From: Shatyuka <958182453@qq.com> Date: Wed, 7 Sep 2022 01:02:27 +0800 Subject: [PATCH] Scale map icons with font size --- cheat-library/src/user/cheat/imap/InteractiveMap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp index 6414a7b..60248fc 100644 --- a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp +++ b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp @@ -1476,6 +1476,9 @@ namespace cheat::feature static void RenderPointCircle(const ImVec2& position, ImTextureID textureID, float transparency, float radius, bool isCustom = false) { + auto& settings = feature::Settings::GetInstance(); + radius *= settings.f_FontSize / 16.0f; + ImVec2 imageStartPos = position - radius; ImVec2 imageEndPos = position + radius;