mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
hotfix x11grabber
Former-commit-id: 7068bad863cf229e01382f859ff06a51dad82d17
This commit is contained in:
parent
45dff6d1d3
commit
1e319be54a
@ -111,22 +111,24 @@ bool X11Grabber::Setup()
|
|||||||
|
|
||||||
Image<ColorRgb> & X11Grabber::grab()
|
Image<ColorRgb> & X11Grabber::grab()
|
||||||
{
|
{
|
||||||
if (_XRenderAvailable && !_useXGetImage) {
|
updateScreenDimensions();
|
||||||
XRenderComposite( _x11Display, // *dpy,
|
|
||||||
PictOpSrc, // op,
|
if (_XRenderAvailable && !_useXGetImage) {
|
||||||
_srcPicture, // src
|
XRenderComposite( _x11Display, // *dpy,
|
||||||
None, // mask
|
PictOpSrc, // op,
|
||||||
_dstPicture, // dst
|
_srcPicture, // src
|
||||||
_cropLeft, // src_x
|
None, // mask
|
||||||
_cropTop, // src_y
|
_dstPicture, // dst
|
||||||
0, // mask_x
|
_cropLeft, // src_x
|
||||||
0, // mask_y
|
_cropTop, // src_y
|
||||||
0, // dst_x
|
0, // mask_x
|
||||||
0, // dst_y
|
0, // mask_y
|
||||||
_croppedWidth, // width
|
0, // dst_x
|
||||||
_croppedHeight); // height
|
0, // dst_y
|
||||||
|
_croppedWidth, // width
|
||||||
|
_croppedHeight); // height
|
||||||
|
|
||||||
XSync(_x11Display, False);
|
XSync(_x11Display, False);
|
||||||
|
|
||||||
if (_XShmAvailable) {
|
if (_XShmAvailable) {
|
||||||
XShmGetImage(_x11Display, _pixmap, _xImage, 0, 0, AllPlanes);
|
XShmGetImage(_x11Display, _pixmap, _xImage, 0, 0, AllPlanes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user