Skip to content

Commit

Permalink
Fix screenshot function (QT/DX)
Browse files Browse the repository at this point in the history
The size of the target image was not corrected
  • Loading branch information
Paulchen-Panther committed Jul 17, 2020
1 parent 994c807 commit 9d142c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hyperion-dx/DxWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DxWrapper::DxWrapper(int grabInterval, int cropLeft, int cropRight, int cropTop,

const Image<ColorRgb> & DxWrapper::getScreenshot()
{
_grabber.grabFrame(_screenshot);
capture();
return _screenshot;
}

Expand Down
2 changes: 1 addition & 1 deletion src/hyperion-qt/QtWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ QtWrapper::QtWrapper(int grabInterval, int cropLeft, int cropRight, int cropTop,

const Image<ColorRgb> & QtWrapper::getScreenshot()
{
_grabber.grabFrame(_screenshot);
capture();
return _screenshot;
}

Expand Down

2 comments on commit 9d142c8

@Lord-Grey
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi
Schau mal, X11Wrapper.cpp hat auch den _grabber.grabFrame Codeteil

@Paulchen-Panther
Copy link
Member Author

@Paulchen-Panther Paulchen-Panther commented on 9d142c8 Jul 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da wird das target image mithilfe vom ImageResampler vergrößert.
https://github.com/Paulchen-Panther/hyperion.ng/blob/directx/libsrc/grabber/x11/X11Grabber.cpp#L200

Zuvor passt setup() die Größe des target bildes an.
https://github.com/Paulchen-Panther/hyperion.ng/blob/directx/libsrc/grabber/x11/X11Grabber.cpp#L124

Also doppelt gemoppelt. 😄

Please sign in to comment.