Start the SDL window on the same display as the Qt UI was displayed on

This commit is contained in:
Cameron Gutman
2018-09-05 15:15:53 -07:00
parent 4df9d6b20a
commit 856318f947
3 changed files with 45 additions and 27 deletions
+3 -1
View File
@@ -19,7 +19,7 @@ class Session : public QObject
public:
explicit Session(NvComputer* computer, NvApp& app);
Q_INVOKABLE void exec();
Q_INVOKABLE void exec(int displayOriginX, int displayOriginY);
static
bool isHardwareDecodeAvailable(StreamingPreferences::VideoDecoderSelection vds,
@@ -113,6 +113,8 @@ private:
bool m_NeedsIdr;
bool m_AudioDisabled;
Uint32 m_FullScreenFlag;
int m_DisplayOriginX;
int m_DisplayOriginY;
int m_ActiveVideoFormat;
int m_ActiveVideoWidth;