From 9d142c81a60617ce34976f31c3f7c7a995afd8cf Mon Sep 17 00:00:00 2001 From: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com> Date: Fri, 17 Jul 2020 21:54:24 +0200 Subject: [PATCH] Fix screenshot function (QT/DX) The size of the target image was not corrected --- src/hyperion-dx/DxWrapper.cpp | 2 +- src/hyperion-qt/QtWrapper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hyperion-dx/DxWrapper.cpp b/src/hyperion-dx/DxWrapper.cpp index a73188219..6cdc67049 100644 --- a/src/hyperion-dx/DxWrapper.cpp +++ b/src/hyperion-dx/DxWrapper.cpp @@ -13,7 +13,7 @@ DxWrapper::DxWrapper(int grabInterval, int cropLeft, int cropRight, int cropTop, const Image & DxWrapper::getScreenshot() { - _grabber.grabFrame(_screenshot); + capture(); return _screenshot; } diff --git a/src/hyperion-qt/QtWrapper.cpp b/src/hyperion-qt/QtWrapper.cpp index c747948f9..278a6a45c 100644 --- a/src/hyperion-qt/QtWrapper.cpp +++ b/src/hyperion-qt/QtWrapper.cpp @@ -13,7 +13,7 @@ QtWrapper::QtWrapper(int grabInterval, int cropLeft, int cropRight, int cropTop, const Image & QtWrapper::getScreenshot() { - _grabber.grabFrame(_screenshot); + capture(); return _screenshot; }