Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(avform): Added shift screen region
Browse files Browse the repository at this point in the history
Fix #3552.
  • Loading branch information
Diadlo committed Aug 24, 2016
1 parent 26a27cf commit eaccbf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/widget/form/settings/avform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "src/core/coreav.h"
#include "src/core/recursivesignalblocker.h"

#include <QScreen>
#include <QDebug>
#include <QShowEvent>
#include <map>
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit eaccbf3

Please sign in to comment.