1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(avform): Added shift screen region

Fix #3552.
This commit is contained in:
Diadlo 2016-07-26 13:47:41 +03:00
parent 26a27cf3f8
commit eaccbf3da9
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -30,6 +30,7 @@
#include "src/core/coreav.h"
#include "src/core/recursivesignalblocker.h"
#include <QScreen>
#include <QDebug>
#include <QShowEvent>
#include <map>
@ -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);