Browse Source

Move FPS to top, Adjust Map Text if FPS is on

pull/8206/head
Trihedraf 5 months ago committed by Anders Jenbo
parent
commit
b8feddb38e
  1. 5
      Source/automap.cpp
  2. 2
      Source/engine/render/scrollrt.cpp

5
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: "));

2
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<std::string_view::size_type>(end - buf) };
};
DrawString(out, formatted, Point { 8, 68 }, { .flags = UiFlags::ColorRed });
DrawString(out, formatted, Point { 8, 8 }, { .flags = UiFlags::ColorRed });
}
/**

Loading…
Cancel
Save