mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 01:56:08 -04:00
fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope)
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user