mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:53:08 +02:00
improved disabled preview wording
This commit is contained in:
parent
09b3292f94
commit
8f5c5ebf0e
3 changed files with 7 additions and 2 deletions
BIN
interface/resources/images/preview-disabled.png
Normal file
BIN
interface/resources/images/preview-disabled.png
Normal file
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 |
|
@ -92,7 +92,6 @@ bool HmdDisplayPlugin::internalActivate() {
|
||||||
_disablePreview = true;
|
_disablePreview = true;
|
||||||
#else
|
#else
|
||||||
_disablePreview = _container->getBoolSetting("disableHmdPreview", DEFAULT_DISABLE_PREVIEW || _vsyncEnabled);
|
_disablePreview = _container->getBoolSetting("disableHmdPreview", DEFAULT_DISABLE_PREVIEW || _vsyncEnabled);
|
||||||
qDebug() << __FUNCTION__ << "_disablePreview:" << _disablePreview;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_container->removeMenu(FRAMERATE);
|
_container->removeMenu(FRAMERATE);
|
||||||
|
@ -228,7 +227,13 @@ void HmdDisplayPlugin::internalPresent() {
|
||||||
});
|
});
|
||||||
swapBuffers();
|
swapBuffers();
|
||||||
} else if (_clearPreviewFlag) {
|
} 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.mirrored();
|
||||||
image = image.convertToFormat(QImage::Format_RGBA8888);
|
image = image.convertToFormat(QImage::Format_RGBA8888);
|
||||||
if (!_previewTexture) {
|
if (!_previewTexture) {
|
||||||
|
|
Loading…
Reference in a new issue