1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
*** xc/programs/Xserver/Imakefile.orig Fri Jun 6 11:02:36 2003
--- xc/programs/Xserver/Imakefile Fri Jun 6 11:14:39 2003
***************
*** 409,412 ****
--- 409,429 ----
#endif
#endif /* XsunServer */
+ XCOMM
+ XCOMM X VNC server
+ XCOMM
+ MFBDIR = mfb
+ CFB8DIR = cfb
+ CFB16DIR = cfb16
+ CFB24DIR = cfb24
+ CFB32DIR = cfb32
+ XVNCDDXDIR = vnc/Xvnc
+ XVNCDIRS = $(STDDIRS) $(MFBDIR) \
+ $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
+ $(XVNCDDXDIR) $(DEPDIRS)
+ XVNCOBJS = $(XVNCDDXDIR)/stubs.o $(XVNCDDXDIR)/miinitext.o
+ XVNCLIBS = PreFbLibs vnc/Xvnc/LibraryTargetName(xvnc) CFBLibs PostFbLibs
+ XVNCSYSLIBS = $(FONTLIBS) $(SYSLIBS)
+ ServerTarget(Xvnc,$(XVNCDIRS),$(XVNCOBJS), \
+ $(XVNCLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XVNCSYSLIBS))
*** xc/programs/Xserver/mi/miinitext.c.orig Fri Jun 6 11:02:59 2003
--- xc/programs/Xserver/mi/miinitext.c Fri Jun 6 11:17:15 2003
***************
*** 150,153 ****
--- 150,156 ----
extern void MITMiscExtensionInit(INITARGS);
#endif
+ #ifdef VNCEXT
+ extern void vncExtensionInit(INITARGS);
+ #endif
#ifdef XIDLE
extern void XIdleExtensionInit(INITARGS);
***************
*** 285,288 ****
--- 288,294 ----
MITMiscExtensionInit();
#endif
+ #ifdef VNCEXT
+ vncExtensionInit();
+ #endif
#ifdef XIDLE
XIdleExtensionInit();
*** xc/programs/Xserver/cfb/cfb8line.c.orig Wed Sep 18 18:11:47 2002
--- xc/programs/Xserver/cfb/cfb8line.c Thu Jun 5 18:32:04 2003
***************
*** 688,707 ****
y1_or_e1 = xOffset & 3;
# else
! # if PGSZ == 64 /* PIM value from <cfbmskbits.h> is not it! (for 16/32 PSZ)*/
! y1_or_e1 = ((long) addrp) & 0x7;
! addrp = (PixelType *) (((unsigned char *) addrp) - y1_or_e1);
! # else
! y1_or_e1 = ((long) addrp) & PIM;
! addrp = (PixelType *) (((unsigned char *) addrp) - y1_or_e1);
! # endif
! #if PGSZ == 32
! # if PWSH != 2
! y1_or_e1 >>= (2 - PWSH);
! # endif
! #else /* PGSZ == 64 */
! # if PWSH != 3
! y1_or_e1 >>= (3 - PWSH);
! # endif
! #endif /* PGSZ */
# endif /* PSZ == 24 */
#if PSZ == 24
--- 688,696 ----
y1_or_e1 = xOffset & 3;
# else
! /* Round addrp down to the next PixelGroup boundary, and
! * set y1_or_e1 to the excess (in pixels)
! * (assumes PGSZB is a power of 2). */
! y1_or_e1 = (((unsigned long) addrp) & (PGSZB - 1)) / (PSZ / 8);
! addrp -= y1_or_e1;
# endif /* PSZ == 24 */
#if PSZ == 24
*** xc/programs/Xserver/cfb/cfbtile32.c.orig Fri Dec 14 19:59:25 2001
--- xc/programs/Xserver/cfb/cfbtile32.c Thu Jun 5 18:16:48 2003
***************
*** 73,77 ****
(p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<8)|(srcpix>>16)),*(p))))
! #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
# define Expand(left,right) {\
int part = nlwMiddle & ((PGSZB*2)-1); \
--- 73,83 ----
(p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<8)|(srcpix>>16)),*(p))))
!
!
! /* XXX TJR: I doubt that this optimised case works (because the non-24 bit case
! was broken), so I've added the #if 0 below. Someone who knows what they're
! doing can re-enable it if they fix it */
!
! #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE) && 0
# define Expand(left,right) {\
int part = nlwMiddle & ((PGSZB*2)-1); \
***************
*** 145,150 ****
#if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
# define Expand(left,right) {\
! int part = nlwMiddle & ((PGSZB*2)-1); \
! nlwMiddle >>= PWSH + 1; \
while (h--) { \
srcpix = psrc[srcy]; \
--- 151,156 ----
#if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
# define Expand(left,right) {\
! int part = nlwMiddle & 7; \
! nlwMiddle >>= 3; \
while (h--) { \
srcpix = psrc[srcy]; \
*** xc/programs/Xserver/cfb/cfbglblt8.c.orig Fri Dec 14 19:59:23 2001
--- xc/programs/Xserver/cfb/cfbglblt8.c Tue Aug 12 10:05:57 2003
***************
*** 284,288 ****
register glyphPointer glyphBits;
register int xoff;
! #if defined(USE_LEFT_BITS) || (!defined(STIPPLE) && !defined(USE_STIPPLE_CODE))
register CfbBits *dst;
#endif
--- 284,288 ----
register glyphPointer glyphBits;
register int xoff;
! #if defined(USE_LEFTBITS) || (!defined(STIPPLE) && !defined(USE_STIPPLE_CODE))
register CfbBits *dst;
#endif
***************
*** 292,296 ****
CfbBits *dstLine;
CfbBits *pdstBase;
! #ifdef USE_LEFT_BITS
CARD32 *cTmp;
#endif
--- 292,296 ----
CfbBits *dstLine;
CfbBits *pdstBase;
! #ifdef USE_LEFTBITS
CARD32 *cTmp;
#endif
***************
*** 399,403 ****
} while (--hTmp);
break;
! #else /* !USE_LEFT_BITS */
{
int h;
--- 399,403 ----
} while (--hTmp);
break;
! #else /* !USE_LEFTBITS */
{
int h;
***************
*** 412,416 ****
glyphBits = clips;
/* fall through */
! #endif /* USE_LEFT_BITS */
case rgnIN:
#ifdef STIPPLE
--- 412,416 ----
glyphBits = clips;
/* fall through */
! #endif /* USE_LEFTBITS */
case rgnIN:
#ifdef STIPPLE
*** xc/programs/Xserver/cfb/cfbcppl.c.orig Fri Dec 14 19:59:22 2001
--- xc/programs/Xserver/cfb/cfbcppl.c Sun Apr 18 12:53:36 2004
***************
*** 383,389 ****
psrcLine = (unsigned int *)psrcBase + srcy * widthSrc + srcx;
#endif
pdstLine = (unsigned int *)pdstBase + dsty * widthDst + (dstx >> 5);
! if (dstx + width <= 32)
{
mfbmaskpartialbits(dstx, width, startmask);
nlMiddle = 0;
--- 383,389 ----
psrcLine = (unsigned int *)psrcBase + srcy * widthSrc + srcx;
#endif
pdstLine = (unsigned int *)pdstBase + dsty * widthDst + (dstx >> 5);
! if ((dstx & 0x1f) + width <= 32)
{
mfbmaskpartialbits(dstx, width, startmask);
nlMiddle = 0;
|