You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
33 lines
1.0 KiB
1 year ago
|
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
|
||
|
|