diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-14 12:18:07 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-19 17:30:20 +0000 |
commit | 3dfab5b9b809299704c8d3296e2cde30e703b2de (patch) | |
tree | c9a2ba99075e083ad7ffc1ad2323e42afca2d52d | |
parent | c09e52d10e3bdc6af8c72757ce17527fef6143a3 (diff) |
drop obsolete XV_NEW_REPUT
Since we're relying on new enought Xserver that always has
ScrnInfoRec.ModeSet, no need to support old legacy anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-apm/-/merge_requests/8>
-rw-r--r-- | configure.ac | 15 | ||||
-rw-r--r-- | src/apm_video.c | 7 |
2 files changed, 0 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac index f18509b..0e970f2 100644 --- a/configure.ac +++ b/configure.ac @@ -73,21 +73,6 @@ AC_SUBST([DRIVER_NAME]) # since we cannot use the result from XORG_DRIVER_CHECK_EXT directly. AC_CHECK_DECL([XV], [have_xv=yes], [have_xv=false], [#include "xorg/xorg-server.h"]) -if test "x$have_xv" = xyes; then - SAVED_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $XORG_CFLAGS" - - AC_CHECK_MEMBER([ScrnInfoRec.ModeSet], - [SCRNINFO_HAS_MODESET=yes], [SCRNINFO_HAS_MODESET=no], - [#include "xf86str.h"]) - if test "x$SCRNINFO_HAS_MODESET" = xyes; then - AC_DEFINE(XV_NEW_REPUT, 1, - [XvReputImage takes more all coordinates]) - fi - - CFLAGS="$SAVED_CFLAGS" -fi -AM_CONDITIONAL(XV_NEW_REPUT, test x$XV_NEW_REPUT = xyes) AC_CONFIG_FILES([ diff --git a/src/apm_video.c b/src/apm_video.c index 9b5b601..393e18d 100644 --- a/src/apm_video.c +++ b/src/apm_video.c @@ -26,10 +26,6 @@ static void ApmQueryBestSize(ScrnInfoPtr, Bool, short, short, short, static int ApmQueryImageAttributes(ScrnInfoPtr, int, unsigned short *, unsigned short *, int *, int *); -#ifndef XV_NEW_REPUT -static int A(ReputImage)(ScrnInfoPtr, short, short, RegionPtr, pointer, - DrawablePtr); -#endif static int A(PutImage)(ScrnInfoPtr, short, short, short, short, short, short, short, short, int, unsigned char*, short, short, Bool, RegionPtr, pointer, @@ -335,9 +331,6 @@ A(SetupImageVideo)(ScreenPtr pScreen) adapt->GetPortAttribute = ApmGetPortAttribute; adapt->QueryBestSize = ApmQueryBestSize; adapt->PutImage = A(PutImage); -#ifndef XV_NEW_REPUT - adapt->ReputImage = A(ReputImage); -#endif adapt->QueryImageAttributes = ApmQueryImageAttributes; pPriv->brightness = 0; |