X11: Add Xdbe support to message boxes (thanks, Melker!).

Without this, message boxes with a lot of text will noticibly flicker as
you mouse over buttons.

Fixes Bugzilla #2343.
This commit is contained in:
Ryan C. Gordon
2015-05-28 00:30:21 -04:00
parent bea1854cac
commit 2a75782553
14 changed files with 114 additions and 2 deletions

27
configure vendored
View File

@@ -826,6 +826,7 @@ enable_video_x11
with_x
enable_x11_shared
enable_video_x11_xcursor
enable_video_x11_xdbe
enable_video_x11_xinerama
enable_video_x11_xinput
enable_video_x11_xrandr
@@ -1551,6 +1552,7 @@ Optional Features:
--enable-x11-shared dynamically load X11 support [[default=maybe]]
--enable-video-x11-xcursor
enable X11 Xcursor support [[default=yes]]
--enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
--enable-video-x11-xinerama
enable X11 Xinerama support [[default=yes]]
--enable-video-x11-xinput
@@ -20123,6 +20125,31 @@ $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
fi
# Check whether --enable-video-x11-xdbe was given.
if test "${enable_video_x11_xdbe+set}" = set; then :
enableval=$enable_video_x11_xdbe;
else
enable_video_x11_xdbe=yes
fi
if test x$enable_video_x11_xdbe = xyes; then
ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
"
if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
have_dbe_h_hdr=yes
else
have_dbe_h_hdr=no
fi
if test x$have_dbe_h_hdr = xyes; then
$as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
fi
fi
# Check whether --enable-video-x11-xinerama was given.
if test "${enable_video_x11_xinerama+set}" = set; then :
enableval=$enable_video_x11_xinerama;