[PATCH xf86-video-modesetting] Track X server API changes for DamageUnregister

Keith Packard keithp at keithp.com
Thu Nov 14 05:31:42 PST 2013


Gaetan Nadon <memsize at videotron.ca> writes:

> On 13-11-14 03:09 AM, Keith Packard wrote:
>> -	DamageUnregister(&pScreen->GetScreenPixmap(pScreen)->drawable, ms->damage);
>> +	DamageUnregister(ms->damage);
> Wouldn't that break on earlier server versions?

Yes.

> The Intel driver added this code in compat-api.h:
>
>     #if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
>     #define DamageUnregister(d, dd) DamageUnregister(dd)
>     #endif

A fine plan.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131114/3ac5c9c9/attachment.pgp>


More information about the xorg-devel mailing list