mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Update screen dimensions only if they really change
This commit is contained in:
parent
e438bc62a6
commit
63839f9fc7
@ -119,8 +119,7 @@ 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