fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope)

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2026-01-04 18:40:44 +00:00
parent 6b61abad42
commit 25ef0e1c25

View File

@@ -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<double> 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;