libsdl: added patch to fix tearing issues when composite is disabled (thanks to Matt Housh)

This commit is contained in:
Jose V Beneyto 2014-11-28 17:40:35 +00:00
parent 838b0d9cbd
commit e86b1a1e68
4 changed files with 24 additions and 2 deletions

View File

@ -1,2 +1,3 @@
9d96df8417572a2afb781a7c4c811a85 SDL-1.2.15.tar.gz
9d94caa7f2eef5163f11339cf59e5ed2 libsdl-1.2.15-bs.patch
ebff7a0aef0b79a0199e394ff9b212ab libsdl-1.2.x-libx11.patch

View File

@ -6,14 +6,15 @@
name=libsdl
version=1.2.15
release=2
release=3
source=(http://www.libsdl.org/release/SDL-$version.tar.gz \
$name-1.2.x-libx11.patch)
$name-1.2.x-libx11.patch $name-$version-bs.patch)
build () {
cd SDL-$version
patch -p1 -i $SRC/$name-1.2.x-libx11.patch
patch -p1 -i $SRC/$name-$version-bs.patch
./configure --prefix=/usr \
--enable-alsa \

8
libsdl/README Normal file
View File

@ -0,0 +1,8 @@
README for libsdl-1.2.x
NOTES
Backing store is enabled by default. To see more information see:
https://bugzilla.libsdl.org/show_bug.cgi?id=2383
https://bugs.freedesktop.org/show_bug.cgi?id=74158

View File

@ -0,0 +1,12 @@
diff -urN SDL-1.2.15.orig/src/video/x11/SDL_x11video.c SDL-1.2.15/src/video/x11/SDL_x11video.c
--- SDL-1.2.15.orig/src/video/x11/SDL_x11video.c 2012-01-19 00:30:06.000000000 -0600
+++ SDL-1.2.15/src/video/x11/SDL_x11video.c 2014-11-24 11:06:26.103652066 -0600
@@ -1088,7 +1088,7 @@
}
}
-#if 0 /* This is an experiment - are the graphics faster now? - nope. */
+#if 1 /* This is an experiment - are the graphics faster now? - nope. */
if ( SDL_getenv("SDL_VIDEO_X11_BACKINGSTORE") )
#endif
/* Cache the window in the server, when possible */