diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-02 23:07:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-02 23:07:23 +0200 |
commit | abdbd03ca90a59115067c0ae09d98472df3cbd32 (patch) | |
tree | e7b0e15b01d25a676f4a48927726740f47525fb5 /src | |
parent | 539bffab6688cb20555aa738d4218571f8e526b9 (diff) |
Change title of companion window to vr-video-player
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8e64d91..42e9a2f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,8 +152,6 @@ private: bool m_bGlFinishHack; vr::IVRSystem *m_pHMD; - std::string m_strDriver; - std::string m_strDisplay; vr::TrackedDevicePose_t m_rTrackedDevicePose[ vr::k_unMaxTrackedDeviceCount ]; glm::mat4 m_rmat4DevicePose[ vr::k_unMaxTrackedDeviceCount ]; @@ -632,7 +630,7 @@ bool CMainApplication::BInit() if( m_bDebugOpenGL ) SDL_GL_SetAttribute( SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG ); - m_pCompanionWindow = SDL_CreateWindow( "hellovr", nWindowPosX, nWindowPosY, m_nCompanionWindowWidth, m_nCompanionWindowHeight, unWindowFlags ); + m_pCompanionWindow = SDL_CreateWindow( "vr-video-player", nWindowPosX, nWindowPosY, m_nCompanionWindowWidth, m_nCompanionWindowHeight, unWindowFlags ); if (m_pCompanionWindow == NULL) { printf( "%s - Window could not be created! SDL Error: %s\n", __FUNCTION__, SDL_GetError() ); @@ -661,15 +659,6 @@ bool CMainApplication::BInit() return false; } - m_strDriver = "No Driver"; - m_strDisplay = "No Display"; - - m_strDriver = GetTrackedDeviceString( vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_TrackingSystemName_String ); - m_strDisplay = GetTrackedDeviceString( vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_SerialNumber_String ); - - std::string strWindowTitle = "hellovr - " + m_strDriver + " " + m_strDisplay; - SDL_SetWindowTitle( m_pCompanionWindow, strWindowTitle.c_str() ); - // cube array m_iSceneVolumeWidth = m_iSceneVolumeInit; m_iSceneVolumeHeight = m_iSceneVolumeInit; |