From 7479de0bb37ad7adc5f6c6b5dee9bfb1db2f7c5d Mon Sep 17 00:00:00 2001 From: "Matteo F. Vescovi" Date: Mon, 13 Jul 2020 23:04:47 +0200 Subject: debian/patches/: patchset updated - 0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch added --- ...Mask-CACHED_BRUSH-when-checking-brush-sty.patch | 28 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 29 insertions(+) create mode 100644 debian/patches/0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch create mode 100644 debian/patches/series diff --git a/debian/patches/0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch b/debian/patches/0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch new file mode 100644 index 0000000..b56c3af --- /dev/null +++ b/debian/patches/0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch @@ -0,0 +1,28 @@ +From 62530e2d9dab999d1c5ddd1368d67c599dccd580 Mon Sep 17 00:00:00 2001 +From: Armin Novak +Date: Tue, 23 Jun 2020 09:24:35 +0200 +Subject: [PATCH 03/34] Fixed #6298: Mask CACHED_BRUSH when checking brush + style + +(cherry picked from commit ce1a9d8d1969ecbb4d24b9f4812654638a44abc2) +--- + libfreerdp/core/orders.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libfreerdp/core/orders.c b/libfreerdp/core/orders.c +index dc4e51a87..537e69426 100644 +--- a/libfreerdp/core/orders.c ++++ b/libfreerdp/core/orders.c +@@ -139,7 +139,8 @@ static BYTE get_bmf_bpp(UINT32 bmf, BOOL* pValid) + { + if (pValid) + *pValid = TRUE; +- switch (bmf) ++ /* Mask out highest bit */ ++ switch (bmf & (~CACHED_BRUSH)) + { + case 1: + return 1; +-- +2.25.4 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ffdd41c --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0003-Fixed-6298-Mask-CACHED_BRUSH-when-checking-brush-sty.patch -- cgit v1.2.3