From b8feddb38ef3ef48251006cc053c28f0954c500a Mon Sep 17 00:00:00 2001 From: Trihedraf Date: Sat, 4 Oct 2025 06:59:35 -0700 Subject: [PATCH] Move FPS to top, Adjust Map Text if FPS is on --- Source/automap.cpp | 5 +++++ Source/engine/render/scrollrt.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/automap.cpp b/Source/automap.cpp index 92cc4fc70..92037237b 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -17,6 +17,7 @@ #include "engine/render/primitive_render.hpp" #include "levels/gendung.h" #include "levels/setmaps.h" +#include "options.h" #include "player.h" #include "utils/attributes.h" #include "utils/enum_traits.h" @@ -1411,6 +1412,10 @@ void DrawAutomapText(const Surface &out) { Point linePosition { 8, 8 }; + if (*GetOptions().Graphics.showFPS) { + linePosition.y += 15; + } + if (gbIsMultiplayer) { if (GameName != "0.0.0.0" && !IsLoopback) { std::string description = std::string(_("Game: ")); diff --git a/Source/engine/render/scrollrt.cpp b/Source/engine/render/scrollrt.cpp index 1f5d0ee41..662d49b58 100644 --- a/Source/engine/render/scrollrt.cpp +++ b/Source/engine/render/scrollrt.cpp @@ -1369,7 +1369,7 @@ void DrawFPS(const Surface &out) : BufCopy(buf, fps / FpsPow10, ".", fps % FpsPow10, " FPS"); formatted = { buf, static_cast(end - buf) }; }; - DrawString(out, formatted, Point { 8, 68 }, { .flags = UiFlags::ColorRed }); + DrawString(out, formatted, Point { 8, 8 }, { .flags = UiFlags::ColorRed }); } /**