improved disabled preview wording

This commit is contained in:
Brad Hefta-Gaub 2016-09-19 18:19:35 -07:00
parent 09b3292f94
commit 8f5c5ebf0e
3 changed files with 7 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View file

@ -92,7 +92,6 @@ bool HmdDisplayPlugin::internalActivate() {
_disablePreview = true;
#else
_disablePreview = _container->getBoolSetting("disableHmdPreview", DEFAULT_DISABLE_PREVIEW || _vsyncEnabled);
qDebug() << __FUNCTION__ << "_disablePreview:" << _disablePreview;
#endif
_container->removeMenu(FRAMERATE);
@ -228,7 +227,13 @@ void HmdDisplayPlugin::internalPresent() {
});
swapBuffers();
} else if (_clearPreviewFlag) {
auto image = QImage(PathUtils::resourcesPath() + "images/preview.png");
QImage image;
if (_vsyncEnabled) {
image = QImage(PathUtils::resourcesPath() + "images/preview.png");
} else {
image = QImage(PathUtils::resourcesPath() + "images/preview-disabled.png");
}
image = image.mirrored();
image = image.convertToFormat(QImage::Format_RGBA8888);
if (!_previewTexture) {