summaryrefslogtreecommitdiff
path: root/src/citra_qt/bootmanager.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/bootmanager.hxx')
-rw-r--r--src/citra_qt/bootmanager.hxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/citra_qt/bootmanager.hxx b/src/citra_qt/bootmanager.hxx
index f8afc403e..3eec1668e 100644
--- a/src/citra_qt/bootmanager.hxx
+++ b/src/citra_qt/bootmanager.hxx
@@ -1,12 +1,16 @@
1#include <atomic>
2
1#include <QThread> 3#include <QThread>
2#include <QGLWidget> 4#include <QGLWidget>
3#include <atomic> 5
4#include "common/common.h" 6#include "common/common.h"
5#include "common/emu_window.h" 7#include "common/emu_window.h"
6 8
7class GRenderWindow; 9class QScreen;
8class QKeyEvent; 10class QKeyEvent;
9 11
12class GRenderWindow;
13
10class EmuThread : public QThread 14class EmuThread : public QThread
11{ 15{
12 Q_OBJECT 16 Q_OBJECT
@@ -74,7 +78,7 @@ private:
74signals: 78signals:
75 /** 79 /**
76 * Emitted when CPU when we've finished processing a single Gekko instruction 80 * Emitted when CPU when we've finished processing a single Gekko instruction
77 * 81 *
78 * @warning This will only be emitted when the CPU is not running (SetCpuRunning(false)) 82 * @warning This will only be emitted when the CPU is not running (SetCpuRunning(false))
79 * @warning When connecting to this signal from other threads, make sure to specify either Qt::QueuedConnection (invoke slot within the destination object's message thread) or even Qt::BlockingQueuedConnection (additionally block source thread until slot returns) 83 * @warning When connecting to this signal from other threads, make sure to specify either Qt::QueuedConnection (invoke slot within the destination object's message thread) or even Qt::BlockingQueuedConnection (additionally block source thread until slot returns)
80 */ 84 */
@@ -100,7 +104,7 @@ public:
100 void BackupGeometry(); 104 void BackupGeometry();
101 void RestoreGeometry(); 105 void RestoreGeometry();
102 void restoreGeometry(const QByteArray& geometry); // overridden 106 void restoreGeometry(const QByteArray& geometry); // overridden
103 QByteArray saveGeometry(); // overridden 107 QByteArray saveGeometry(); // overridden
104 108
105 EmuThread& GetEmuThread(); 109 EmuThread& GetEmuThread();
106 110
@@ -109,10 +113,16 @@ public:
109 113
110 void ReloadSetKeymaps() override; 114 void ReloadSetKeymaps() override;
111 115
116 void OnClientAreaResized(unsigned width, unsigned height);
117
118 void OnFramebufferSizeChanged();
119
112public slots: 120public slots:
113 void moveContext(); 121 void moveContext(); // overridden
114 122
115private: 123private:
124 void OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) override;
125
116 QGLWidget* child; 126 QGLWidget* child;
117 127
118 EmuThread emu_thread; 128 EmuThread emu_thread;