summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorveego <veego>2002-05-20 23:03:37 +0000
committerveego <veego>2002-05-20 23:03:37 +0000
commit7bf46a38546588255e7aac35fc9ec5007b82f823 (patch)
treea9c67267344464759d438992d7d5d436950f5f01 /graphics
parentc3a8b5acbc78116f87924b0385eae0f63e8be8dd (diff)
downloadpkgsrc-7bf46a38546588255e7aac35fc9ec5007b82f823.tar.gz
ogle now continues if the SHM test fails.
This could help people who don't increase SHMMAXPGS to 16384. XXX This cause some performance lose, so be preparted to not see the full speed of ogle if you don't increase SHMMAXPGS. This patch was needed to debug a problem with Xvideo. Approved by Alistair Crooks.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ogle/patches/patch-ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/ogle/patches/patch-ac b/graphics/ogle/patches/patch-ac
new file mode 100644
index 00000000000..4dc0389ff6d
--- /dev/null
+++ b/graphics/ogle/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1 2002/05/20 23:03:37 veego Exp $
+
+--- mpeg2_video/video_output_x11.c.orig Sun Dec 2 22:38:00 2001
++++ mpeg2_video/video_output_x11.c Tue May 21 00:47:58 2002
+@@ -1751,7 +1751,7 @@
+ window.video_area.width) / 2;
+ window.video_area.y = (int)(window.window_area.height -
+ window.video_area.height) / 2;
+-
++ if(use_xshm) {
+ XvShmPutImage(mydisplay, xv_port, dwin->win, mygc, xv_image,
+ 0, 0,
+ dwin->image->info->picture.horizontal_size,
+@@ -1761,9 +1761,18 @@
+ window.video_area.width,
+ window.video_area.height,
+ True);
+-
++ } else {
++ XvPutImage(mydisplay, xv_port, dwin->win, mygc, xv_image,
++ 0, 0,
++ dwin->image->info->picture.horizontal_size,
++ dwin->image->info->picture.vertical_size,
++ window.video_area.x,
++ window.video_area.y,
++ window.video_area.width,
++ window.video_area.height);
++ }
+ //XFlush(mydisplay); ??
+- {
++ if(use_xshm) {
+ XEvent ev;
+ XEvent *e;
+ e = &ev;