mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 13:12:52 +02:00
move VSYNC into 'PreviewDisabledReasons' enum
This commit is contained in:
parent
a74b093b60
commit
744da710a3
2 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,10 @@ QImage DesktopPreviewProvider::getPreviewDisabledImage(bool vsyncEnabled) const
|
|||
}
|
||||
|
||||
void DesktopPreviewProvider::setPreviewDisabledReason(PreviewDisabledReasons reason) {
|
||||
if (reason == VSYNC) {
|
||||
return; // Not settable via this interface, as VSYNC is controlled by HMD plugin..
|
||||
}
|
||||
|
||||
m_previewDisabledReason = reason;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,12 +18,11 @@ class DesktopPreviewProvider : public QObject, public Dependency {
|
|||
public:
|
||||
enum PreviewDisabledReasons {
|
||||
USER = 0,
|
||||
SECURE_SCREEN
|
||||
SECURE_SCREEN,
|
||||
VSYNC // Not settable via this interface, as VSYNC is controlled by HMD plugin..
|
||||
};
|
||||
Q_ENUM(PreviewDisabledReasons)
|
||||
|
||||
int VSYNC { 2 };
|
||||
|
||||
static QSharedPointer<DesktopPreviewProvider> DesktopPreviewProvider::getInstance();
|
||||
|
||||
QImage getPreviewDisabledImage(bool vsyncEnabled) const;
|
||||
|
|
Loading…
Reference in a new issue