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