No Render Fix, Color/Brightness Sort Order, readme adjustment (#550)
* Adjust Brightness/Color Overlay Sort Orders for better app complienc * No Overlay Render Attempt fix * change readme update version string
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#include "utils/setup.h"
|
||||
#include "settings/settings.h"
|
||||
#include "openvr/ovr_settings_wrapper.h"
|
||||
#ifdef _WIN64
|
||||
# include <windows.h>
|
||||
extern "C" __declspec( dllexport ) DWORD NvOptimusEnablement = 0x00000001;
|
||||
extern "C" __declspec( dllexport ) DWORD
|
||||
AmdPowerXpressRequestHighPerformance = 0x00000001;
|
||||
#endif
|
||||
|
||||
INITIALIZE_EASYLOGGINGPP
|
||||
|
||||
@@ -14,6 +20,7 @@ int main( int argc, char* argv[] )
|
||||
LOG( INFO ) << settings::getSettingsAndValues();
|
||||
|
||||
QCoreApplication::setAttribute( Qt::AA_Use96Dpi );
|
||||
QCoreApplication::setAttribute( Qt::AA_UseDesktopOpenGL );
|
||||
MyQApplication mainEventLoop( argc, argv );
|
||||
mainEventLoop.setOrganizationName(
|
||||
application_strings::applicationOrganizationName );
|
||||
|
||||
@@ -66,6 +66,8 @@ void VideoTabController::initBrightnessOverlay()
|
||||
m_brightnessOverlayHandle,
|
||||
vr::k_unTrackedDeviceIndex_Hmd,
|
||||
¬ificationTransform );
|
||||
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
|
||||
sortMax );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -109,6 +111,8 @@ void VideoTabController::initColorOverlay()
|
||||
m_colorOverlayHandle,
|
||||
vr::k_unTrackedDeviceIndex_Hmd,
|
||||
¬ificationTransform );
|
||||
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
|
||||
sortMax );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -128,6 +128,7 @@ class VideoTabController : public QObject
|
||||
setColorOverlayOpacity NOTIFY colorOverlayOpacityChanged )
|
||||
|
||||
private:
|
||||
static constexpr uint32_t sortMax = 0xffffffff;
|
||||
unsigned settingsUpdateCounter = 0;
|
||||
|
||||
// how far away the overlay is, any OVERLAY closer will not be dimmed.
|
||||
|
||||
Reference in New Issue
Block a user