blob: cc90f16d72b9e7a207f5cd403194b441870be6ea [file] [log] [blame]
Peter Åstrand42fb7722005-02-11 15:51:52 +00001diff -bcr xc.org/programs/Xserver/cfb/cfb8line.c xc/programs/Xserver/cfb/cfb8line.c
2*** xc.org/programs/Xserver/cfb/cfb8line.c 2004-04-23 21:00:12.000000000 +0200
3--- xc/programs/Xserver/cfb/cfb8line.c 2005-02-11 16:47:34.000000000 +0100
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004***************
Peter Åstrand42fb7722005-02-11 15:51:52 +00005*** 695,716 ****
6 # if PSZ == 24
7 y1_or_e1 = xOffset & 3;
8 # else
9! # if PGSZ == 64 /* PIM value from <cfbmskbits.h> is not it! (for 16/32 PSZ)*/
10! y1_or_e1 = ((long) addrp) & 0x7;
11! addrp = (PixelType *) (((unsigned char *) addrp) - y1_or_e1);
12! # else
13! y1_or_e1 = ((long) addrp) & PIM;
14! addrp = (PixelType *) (((unsigned char *) addrp) - y1_or_e1);
15! # endif
16! #if PGSZ == 32
17! # if PWSH != 2
18! y1_or_e1 >>= (2 - PWSH);
19! # endif
20! #else /* PGSZ == 64 */
21! # if PWSH != 3
22! y1_or_e1 >>= (3 - PWSH);
23! # endif
24! #endif /* PGSZ */
25 # endif /* PSZ == 24 */
26 #if PSZ == 24
27 {
28--- 695,705 ----
29 # if PSZ == 24
30 y1_or_e1 = xOffset & 3;
31 # else
32! /* Round addrp down to the next PixelGroup boundary, and
33! * set y1_or_e1 to the excess (in pixels)
34! * (assumes PGSZB is a power of 2). */
35! y1_or_e1 = (((unsigned long) addrp) & (PGSZB - 1)) / (PSZ / 8);
36! addrp -= y1_or_e1;
37 # endif /* PSZ == 24 */
38 #if PSZ == 24
39 {
40diff -bcr xc.org/programs/Xserver/cfb/cfbcppl.c xc/programs/Xserver/cfb/cfbcppl.c
41*** xc.org/programs/Xserver/cfb/cfbcppl.c 2004-04-23 21:00:12.000000000 +0200
42--- xc/programs/Xserver/cfb/cfbcppl.c 2005-02-11 16:47:34.000000000 +0100
43***************
44*** 383,389 ****
45 psrcLine = (unsigned int *)psrcBase + srcy * widthSrc + srcx;
46 #endif
47 pdstLine = (unsigned int *)pdstBase + dsty * widthDst + (dstx >> 5);
48! if (dstx + width <= 32)
49 {
50 mfbmaskpartialbits(dstx, width, startmask);
51 nlMiddle = 0;
52--- 383,389 ----
53 psrcLine = (unsigned int *)psrcBase + srcy * widthSrc + srcx;
54 #endif
55 pdstLine = (unsigned int *)pdstBase + dsty * widthDst + (dstx >> 5);
56! if ((dstx & 0x1f) + width <= 32)
57 {
58 mfbmaskpartialbits(dstx, width, startmask);
59 nlMiddle = 0;
60diff -bcr xc.org/programs/Xserver/cfb/cfbtile32.c xc/programs/Xserver/cfb/cfbtile32.c
61*** xc.org/programs/Xserver/cfb/cfbtile32.c 2004-04-23 21:00:12.000000000 +0200
62--- xc/programs/Xserver/cfb/cfbtile32.c 2005-02-11 16:47:34.000000000 +0100
63***************
64*** 72,78 ****
65 (p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<16)|(srcpix>>8)),*(p))), \
66 (p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<8)|(srcpix>>16)),*(p))))
67
68! #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
69 # define Expand(left,right) {\
70 int part = nlwMiddle & ((PGSZB*2)-1); \
71 nlwMiddle *= 3; \
72--- 72,84 ----
73 (p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<16)|(srcpix>>8)),*(p))), \
74 (p)++,(*(p) = MROP_PREBUILT_SOLID(((srcpix<<8)|(srcpix>>16)),*(p))))
75
76!
77!
78! /* XXX TJR: I doubt that this optimised case works (because the non-24 bit case
79! was broken), so I've added the #if 0 below. Someone who knows what they're
80! doing can re-enable it if they fix it */
81!
82! #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE) && 0
83 # define Expand(left,right) {\
84 int part = nlwMiddle & ((PGSZB*2)-1); \
85 nlwMiddle *= 3; \
86***************
87*** 144,151 ****
88
89 #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
90 # define Expand(left,right) {\
91! int part = nlwMiddle & ((PGSZB*2)-1); \
92! nlwMiddle >>= PWSH + 1; \
93 while (h--) { \
94 srcpix = psrc[srcy]; \
95 MROP_PREBUILD(srcpix); \
96--- 150,157 ----
97
98 #if (MROP == Mcopy) && defined(FAST_CONSTANT_OFFSET_MODE) && defined(SHARED_IDCACHE)
99 # define Expand(left,right) {\
100! int part = nlwMiddle & 7; \
101! nlwMiddle >>= 3; \
102 while (h--) { \
103 srcpix = psrc[srcy]; \
104 MROP_PREBUILD(srcpix); \
105diff -bcr xc.org/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile
106*** xc.org/programs/Xserver/Imakefile 2004-12-15 20:22:53.000000000 +0100
107--- xc/programs/Xserver/Imakefile 2005-02-11 16:50:00.000000000 +0100
108***************
109*** 128,134 ****
110 LIBREGEX = RegexLibrary
111
112 #if DoLoadableServer
113! LIBCWRAPPER = os/libcwrapper.o
114 #endif
115
116 #if BuildXprint
117--- 128,134 ----
118 LIBREGEX = RegexLibrary
119
120 #if DoLoadableServer
121! LIBCWRAPPER = os/libcwrapper.o os/libos.a
122 #endif
123
124 #if BuildXprint
125***************
126*** 414,419 ****
127--- 414,442 ----
128 #define ServerToInstall Xsun
Peter Åstrandaf782652005-02-11 13:56:07 +0000129 #endif
130 #endif /* XsunServer */
131+ XCOMM
132+ XCOMM X VNC server
133+ XCOMM
134+ MFBSUBDIR = mfb
135+ CFB8SUBDIR = cfb
136+ CFB16SUBDIR = cfb16
137+ CFB24SUBDIR = cfb24
138+ CFB32SUBDIR = cfb32
139+ FBSUBDIR = fb
140+ XVNCDDXDIR = vnc/Xvnc
141+ #if VncUseFb
142+ XVNCDIRS = $(STDDIRS) $(FBSUBDIR) $(XVNCDDXDIR) $(DEPDIRS)
143+ XVNCLIBS = PreFbLibs vnc/Xvnc/LibraryTargetName(xvnc) FbPostFbLibs
144+ #else
145+ XVNCDIRS = $(STDDIRS) $(MFBSUBDIR) \
146+ $(CFB8SUBDIR) $(CFB16SUBDIR) $(CFB24SUBDIR) $(CFB32SUBDIR) \
147+ $(XVNCDDXDIR) $(DEPDIRS)
148+ XVNCLIBS = PreFbLibs vnc/Xvnc/LibraryTargetName(xvnc) CFBLibs PostFbLibs
149+ #endif
150+ XVNCOBJS = $(XVNCDDXDIR)/stubs.o $(XVNCDDXDIR)/miinitext.o
151+ XVNCSYSLIBS = $(FONTLIBS) $(SYSLIBS)
152+ ServerTarget(Xvnc,$(XVNCDIRS),$(XVNCOBJS), \
153+ $(XVNCLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XVNCSYSLIBS))
154
155
Peter Åstrand42fb7722005-02-11 15:51:52 +0000156 #if defined(Xsun24Server) && Xsun24Server
157diff -bcr xc.org/programs/Xserver/mi/miinitext.c xc/programs/Xserver/mi/miinitext.c
158*** xc.org/programs/Xserver/mi/miinitext.c 2004-12-13 06:48:41.000000000 +0100
159--- xc/programs/Xserver/mi/miinitext.c 2005-02-11 16:47:34.000000000 +0100
Peter Åstrandaf782652005-02-11 13:56:07 +0000160***************
Peter Åstrand42fb7722005-02-11 15:51:52 +0000161*** 286,291 ****
162--- 286,294 ----
163 #ifdef MITMISC
Peter Åstrandaf782652005-02-11 13:56:07 +0000164 extern void MITMiscExtensionInit(INITARGS);
165 #endif
166+ #ifdef VNCEXT
167+ extern void vncExtensionInit(INITARGS);
168+ #endif
169 #ifdef XIDLE
170 extern void XIdleExtensionInit(INITARGS);
Peter Åstrand42fb7722005-02-11 15:51:52 +0000171 #endif
Peter Åstrandaf782652005-02-11 13:56:07 +0000172***************
Peter Åstrand42fb7722005-02-11 15:51:52 +0000173*** 587,592 ****
174--- 590,598 ----
175 #ifdef MITMISC
176 if (!noMITMiscExtension) MITMiscExtensionInit();
Peter Åstrandaf782652005-02-11 13:56:07 +0000177 #endif
178+ #ifdef VNCEXT
179+ vncExtensionInit();
180+ #endif
181 #ifdef XIDLE
Peter Åstrand42fb7722005-02-11 15:51:52 +0000182 if (!noXIdleExtension) XIdleExtensionInit();
Peter Åstrandaf782652005-02-11 13:56:07 +0000183 #endif