/[gentoo-x86]/x11-base/xorg-server/files/1.2.0-server-damage-version.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.2.0-server-damage-version.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 17 21:31:41 2008 UTC (7 years, 4 months ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Security cleanup. Still waiting on mips/sh/arm to stable 1.3.0.0-r3 before I can pull -r2.
(Portage version: 2.1.4)

1 --- a/damageext/damageext.c
2 +++ b/damageext/damageext.c
3 @@ -35,6 +35,13 @@ int DamageClientPrivateIndex;
4 RESTYPE DamageExtType;
5 RESTYPE DamageExtWinType;
6
7 +/* Version of the damage extension supported by the server, as opposed to the
8 + * DAMAGE_* defines from damageproto for what version the proto header
9 + * supports.
10 + */
11 +#define SERVER_DAMAGE_MAJOR 1
12 +#define SERVER_DAMAGE_MINOR 0
13 +
14 #define prScreen screenInfo.screens[0]
15
16 static void
17 @@ -143,16 +150,16 @@ ProcDamageQueryVersion(ClientPtr client)
18 rep.type = X_Reply;
19 rep.length = 0;
20 rep.sequenceNumber = client->sequence;
21 - if (stuff->majorVersion < DAMAGE_MAJOR) {
22 + if (stuff->majorVersion < SERVER_DAMAGE_MAJOR) {
23 rep.majorVersion = stuff->majorVersion;
24 rep.minorVersion = stuff->minorVersion;
25 } else {
26 - rep.majorVersion = DAMAGE_MAJOR;
27 - if (stuff->majorVersion == DAMAGE_MAJOR &&
28 - stuff->minorVersion < DAMAGE_MINOR)
29 + rep.majorVersion = SERVER_DAMAGE_MAJOR;
30 + if (stuff->majorVersion == SERVER_DAMAGE_MAJOR &&
31 + stuff->minorVersion < SERVER_DAMAGE_MINOR)
32 rep.minorVersion = stuff->minorVersion;
33 else
34 - rep.minorVersion = DAMAGE_MINOR;
35 + rep.minorVersion = SERVER_DAMAGE_MINOR;
36 }
37 pDamageClient->major_version = rep.majorVersion;
38 pDamageClient->minor_version = rep.minorVersion;

  ViewVC Help
Powered by ViewVC 1.1.20