|
0 |
#! /bin/sh /usr/share/dpatch/dpatch-run
|
|
1 |
## 10mono_cursor.dpatch
|
|
2 |
##
|
|
3 |
## All lines beginning with `## DP:' are a description of the patch.
|
|
4 |
## DP: fix monochrome cursor issue
|
|
5 |
|
|
6 |
@DPATCH@
|
|
7 |
|
|
8 |
diff -u -r1.4.2.1 xrdp_constants.h
|
|
9 |
--- xrdp/common/xrdp_constants.h 1 May 2008 06:35:06 -0000 1.4.2.1
|
|
10 |
+++ xrdp/common/xrdp_constants.h 31 May 2008 02:12:08 -0000
|
|
11 |
@@ -213,6 +213,7 @@
|
|
12 |
|
|
13 |
#define RDP_CAPSET_POINTER 8
|
|
14 |
#define RDP_CAPLEN_POINTER 0x0a
|
|
15 |
+#define RDP_CAPLEN_POINTER_MONO 0x08
|
|
16 |
|
|
17 |
#define RDP_CAPSET_SHARE 9
|
|
18 |
#define RDP_CAPLEN_SHARE 0x08
|
|
19 |
diff -u -r1.9 rdp_rdp.c
|
|
20 |
--- xrdp/rdp/rdp_rdp.c 12 Jan 2007 04:51:48 -0000 1.9
|
|
21 |
+++ xrdp/rdp/rdp_rdp.c 31 May 2008 02:12:08 -0000
|
|
22 |
@@ -271,7 +271,7 @@
|
|
23 |
rdp_rdp_out_pointer_caps(struct rdp_rdp* self, struct stream* s)
|
|
24 |
{
|
|
25 |
out_uint16_le(s, RDP_CAPSET_POINTER);
|
|
26 |
- out_uint16_le(s, RDP_CAPLEN_POINTER);
|
|
27 |
+ out_uint16_le(s, RDP_CAPLEN_POINTER_MONO);
|
|
28 |
out_uint16_le(s, 0); /* Color pointer */
|
|
29 |
out_uint16_le(s, 20); /* Cache size */
|
|
30 |
return 0;
|
|
31 |
@@ -355,7 +355,7 @@
|
|
32 |
caplen = RDP_CAPLEN_GENERAL + RDP_CAPLEN_BITMAP + RDP_CAPLEN_ORDER +
|
|
33 |
RDP_CAPLEN_BMPCACHE + RDP_CAPLEN_COLCACHE +
|
|
34 |
RDP_CAPLEN_ACTIVATE + RDP_CAPLEN_CONTROL +
|
|
35 |
- RDP_CAPLEN_POINTER + RDP_CAPLEN_SHARE +
|
|
36 |
+ RDP_CAPLEN_POINTER_MONO + RDP_CAPLEN_SHARE +
|
|
37 |
0x58 + 0x08 + 0x08 + 0x34 /* unknown caps */ +
|
|
38 |
4 /* w2k fix, why? */ ;
|
|
39 |
if (rdp_sec_init(self->sec_layer, s, sec_flags) != 0)
|