Qt: Work around flip model swap chains being limited to vsync when parented

Fixes fast forward not working on some systems.
This commit is contained in:
Connor McLaughlin
2020-04-09 00:14:19 +10:00
parent 1f40d5f77d
commit 0a004361fc
5 changed files with 55 additions and 25 deletions

View File

@@ -29,14 +29,15 @@ public:
virtual QPaintEngine* paintEngine() const override;
int scaledWindowWidth() const;
int scaledWindowHeight() const;
Q_SIGNALS:
void windowResizedEvent(int width, int height);
void windowRestoredEvent();
protected:
qreal getDevicePixelRatioFromScreen() const;
int getScaledWindowWidth() const;
int getScaledWindowHeight() const;
qreal devicePixelRatioFromScreen() const;
virtual bool createImGuiContext();
virtual void destroyImGuiContext();