From be95703bce119f840f3975a55c0479ec6fb6c053 Mon Sep 17 00:00:00 2001 From: Collecting Date: Sun, 4 Jan 2026 18:43:19 +0000 Subject: [PATCH] fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope) Signed-off-by: Collecting --- src/citron/util/vram_overlay.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/citron/util/vram_overlay.h b/src/citron/util/vram_overlay.h index 4deb6532b..4d6480316 100644 --- a/src/citron/util/vram_overlay.h +++ b/src/citron/util/vram_overlay.h @@ -54,6 +54,9 @@ private slots: void UpdateVramStats(); private: + bool is_enabled = false; + bool is_visible = false; + void UpdatePosition(); void DrawVramInfo(QPainter& painter); void DrawVramGraph(QPainter& painter); @@ -73,13 +76,12 @@ private: u32 frame_counter = 0; // VRAM graph data - static constexpr size_t MAX_VRAM_HISTORY = 120; // 2 seconds at 60 FPS + static constexpr size_t MAX_VRAM_HISTORY = 120; std::deque vram_usage_history; double min_vram_usage = 0.0; double max_vram_usage = 100.0; // Display settings - bool is_visible = false; bool is_dragging = false; bool has_been_moved = false; QPoint drag_start_pos;