mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Merge pull request #514 from oCanna/fix/hyperion-x11
Update screen dimensions only if they really change
This commit is contained in:
commit
1860f6166c
@ -119,7 +119,6 @@ int X11Grabber::grabFrame(Image<ColorRgb> & image, bool forceUpdate)
|
|||||||
{
|
{
|
||||||
if (!_enabled) return 0;
|
if (!_enabled) return 0;
|
||||||
|
|
||||||
if (forceUpdate)
|
|
||||||
updateScreenDimensions(forceUpdate);
|
updateScreenDimensions(forceUpdate);
|
||||||
|
|
||||||
if (_XRenderAvailable && !_useXGetImage)
|
if (_XRenderAvailable && !_useXGetImage)
|
||||||
|
@ -36,7 +36,7 @@ bool X11Wrapper::displayInit()
|
|||||||
|
|
||||||
void X11Wrapper::capture()
|
void X11Wrapper::capture()
|
||||||
{
|
{
|
||||||
_grabber.grabFrame(_screenshot, true);
|
_grabber.grabFrame(_screenshot, false);
|
||||||
emit sig_screenshot(_screenshot);
|
emit sig_screenshot(_screenshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user