Fix green screen

i9ce-egfx changed/i9ce-egfx/xorgxrdp-egfx-0.9.80-1.20230830git3d30c7a.el9
Arkady L. Shane 1 year ago
parent b2ded0eb3d
commit b2baa5bbf4
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -0,0 +1,32 @@
From 36ecf37dccfd84dc519886c578baeef2ceee6383 Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Tue, 19 Dec 2023 16:48:49 +0300
Subject: [PATCH] Fix green screen
---
module/rdpCapture.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/module/rdpCapture.c b/module/rdpCapture.c
index 7d112ef..c0419e0 100644
--- a/module/rdpCapture.c
+++ b/module/rdpCapture.c
@@ -1229,7 +1229,14 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
rcode = rdpRegionContainsRect(in_reg, &rect);
LLOGLN(10, ("rdpCapture2: rcode %d", rcode));
- if (rcode != rgnOUT)
+ if (rcode == rgnOUT)
+ {
+ LLOGLN(0, ("rdpCapture2: rgnOUT"));
+ rdpRegionInit(&tile_reg, &rect, 0);
+ rdpRegionSubtract(in_reg, in_reg, &tile_reg);
+ rdpRegionUninit(&tile_reg);
+ }
+ else
{
/* hex digits of pi as a 64 bit int */
if (rcode == rgnPART)
--
2.43.0

@ -5,12 +5,14 @@
Name: xorgxrdp-egfx Name: xorgxrdp-egfx
Version: 0.9.80 Version: 0.9.80
Release: 0.20230830git%{shortcommit}%{?dist} Release: 1.20230830git%{shortcommit}%{?dist}
Summary: Implementation of xrdp backend as Xorg modules Summary: Implementation of xrdp backend as Xorg modules
License: MIT License: MIT
URL: https://github.com/neutrinolabs/xorgxrdp URL: https://github.com/neutrinolabs/xorgxrdp
Source0: https://github.com/neutrinolabs/xorgxrdp/archive/%{commit}/%{real_name}-%{commit}.tar.gz Source0: https://github.com/neutrinolabs/xorgxrdp/archive/%{commit}/%{real_name}-%{commit}.tar.gz
# https://github.com/neutrinolabs/xrdp/issues/2875#issuecomment-1852489427
Patch1: 0001-Fix-green-screen.patch
BuildRequires: make BuildRequires: make
BuildRequires: nasm BuildRequires: nasm
@ -137,6 +139,10 @@ CFLAGS="$RPM_OPT_FLAGS -I/usr/include/libdrm" \
%endif %endif
%changelog %changelog
* Tue Dec 19 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.9.80-1.20230830gitf5103aa4
- Fix green screen
https://github.com/neutrinolabs/xrdp/issues/2875#issuecomment-1852489427
* Mon Dec 18 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.9.80-0.20230830gitf5103aa4 * Mon Dec 18 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.9.80-0.20230830gitf5103aa4
- Build Development version with EGFX support from gfx_mainline_merge - Build Development version with EGFX support from gfx_mainline_merge

Loading…
Cancel
Save