|
|
|
@ -58,6 +58,7 @@
|
|
|
|
|
#include "memory.h"
|
|
|
|
|
#include "notify.h"
|
|
|
|
|
#include "blacklist.h"
|
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_DBUS
|
|
|
|
|
#include "dbus_info.h"
|
|
|
|
@ -1135,9 +1136,12 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2&
|
|
|
|
|
window_size = ImVec2(params.width, params.height);
|
|
|
|
|
unsigned width = ImGui::GetIO().DisplaySize.x;
|
|
|
|
|
unsigned height = ImGui::GetIO().DisplaySize.y;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!params.no_display){
|
|
|
|
|
ImGui::Begin("Main", &open, ImGuiWindowFlags_NoDecoration);
|
|
|
|
|
if (params.enabled[OVERLAY_PARAM_ENABLED_version])
|
|
|
|
|
ImGui::Text("%s", MANGOHUD_VERSION);
|
|
|
|
|
ImGui::Dummy(ImVec2(0, 8.0f));
|
|
|
|
|
if (params.enabled[OVERLAY_PARAM_ENABLED_time]){
|
|
|
|
|
ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.00f), "%s", data.time.c_str());
|
|
|
|
|
}
|
|
|
|
|