drop compat for ancient xserver versions

We're relying on at least 1.18 now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-05-15 15:06:10 +02:00
parent f52fb170fb
commit 1aa9991347
2 changed files with 0 additions and 10 deletions

View File

@@ -66,12 +66,6 @@
#ifndef _X_EXPORT
#define _X_EXPORT
#endif
/*
* So that the file compiles unmodified when dropped into an xfree source tree.
*/
#ifndef XORG_VERSION_CURRENT
#define XORG_VERSION_CURRENT XF86_VERSION_CURRENT
#endif
/*
* This is the only way I know to turn a #define of an integer constant into

View File

@@ -77,11 +77,7 @@ vmwgfx_pixmap_remove_damage(PixmapPtr pixmap)
if (!spix->damage || vpix->hw || vpix->gmr || vpix->malloc)
return;
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
DamageUnregister(spix->damage);
#else
DamageUnregister(&pixmap->drawable, spix->damage);
#endif
DamageDestroy(spix->damage);
spix->damage = NULL;