From 25ef0e1c2532bba71a43163d8210be7a69431c28 Mon Sep 17 00:00:00 2001 From: Collecting Date: Sun, 4 Jan 2026 18:40:44 +0000 Subject: [PATCH] fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope) Signed-off-by: Collecting --- src/citron/util/performance_overlay.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/citron/util/performance_overlay.h b/src/citron/util/performance_overlay.h index 207bec6f3..9716289eb 100644 --- a/src/citron/util/performance_overlay.h +++ b/src/citron/util/performance_overlay.h @@ -26,6 +26,7 @@ public: void SetVisible(bool visible); bool IsVisible() const { return is_visible; } + void setMainWindow(GMainWindow* window) { main_window = window; } public slots: void UpdateTheme(); @@ -41,6 +42,9 @@ private slots: void UpdatePerformanceStats(); private: + bool is_enabled = false; + bool is_visible = false; + void UpdatePosition(); void UpdateHardwareTemperatures(); void DrawPerformanceInfo(QPainter& painter); @@ -68,14 +72,13 @@ private: float battery_temperature = 0.0f; // Frame graph data - static constexpr size_t MAX_FRAME_HISTORY = 120; // 2 seconds at 60 FPS + static constexpr size_t MAX_FRAME_HISTORY = 120; std::deque frame_times; double min_frame_time = 0.0; double max_frame_time = 0.0; double avg_frame_time = 0.0; // Display settings - bool is_visible = false; QFont title_font; QFont value_font; QFont small_font;