From eaccbf3da9a9e90897142370ec76defc85e7fe02 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Tue, 26 Jul 2016 13:47:41 +0300 Subject: [PATCH] fix(avform): Added shift screen region Fix #3552. --- src/widget/form/settings/avform.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/widget/form/settings/avform.cpp b/src/widget/form/settings/avform.cpp index d6001ed38..2dfecb184 100644 --- a/src/widget/form/settings/avform.cpp +++ b/src/widget/form/settings/avform.cpp @@ -30,6 +30,7 @@ #include "src/core/coreav.h" #include "src/core/recursivesignalblocker.h" +#include #include #include #include @@ -171,6 +172,12 @@ void AVForm::on_videoModescomboBox_currentIndexChanged(int index) mode.width = mode.width / 2 * 2; mode.height = mode.height / 2 * 2; + // Need, if virtual screen origin is top left angle of primary screen + QRect screen = QApplication::primaryScreen()->virtualGeometry(); + qDebug() << screen; + mode.x += screen.x(); + mode.y += screen.y(); + Settings::getInstance().setScreenRegion(mode.toRect()); Settings::getInstance().setScreenGrabbed(true);