mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
drop own copy of RegionDuplicate()
This function is present in the Xserver for way over a decade, so no need to carry around our own copy anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5e9f88232f
commit
cd40763e9f
@@ -150,12 +150,6 @@ else
|
||||
fi
|
||||
AM_CONDITIONAL(GLAMOR, test x$GLAMOR != xno)
|
||||
|
||||
AC_CHECK_DECL(RegionDuplicate,
|
||||
[AC_DEFINE(HAVE_REGIONDUPLICATE, 1,
|
||||
[Have RegionDuplicate API])], [],
|
||||
[#include <xorg-server.h>
|
||||
#include <regionstr.h>])
|
||||
|
||||
AC_CHECK_DECL(xf86CursorResetCursor,
|
||||
[AC_DEFINE(HAVE_XF86_CURSOR_RESET_CURSOR, 1,
|
||||
[Have xf86CursorResetCursor API])], [],
|
||||
|
||||
@@ -89,25 +89,6 @@
|
||||
|
||||
struct _SyncFence;
|
||||
|
||||
#ifndef HAVE_REGIONDUPLICATE
|
||||
|
||||
static inline RegionPtr
|
||||
RegionDuplicate(RegionPtr pOld)
|
||||
{
|
||||
RegionPtr pNew;
|
||||
|
||||
pNew = RegionCreate(&pOld->extents, 0);
|
||||
if (!pNew)
|
||||
return NULL;
|
||||
if (!RegionCopy(pNew, pOld)) {
|
||||
RegionDestroy(pNew);
|
||||
return NULL;
|
||||
}
|
||||
return pNew;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a,b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user