summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2010-12-01 01:52:33 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2010-12-01 01:52:33 (GMT)
commit506987ef89d37c50d36e2bec2bc0c25102833ee7 (patch)
tree182e052a9c444f8bb7e075cc485da8b7289b5180
parent206d42c28ce9d379b3937498413bd222e9eb07e1 (diff)
Backport r27392 from trunk to release-0-24-fixes
Ensure the X image created in the Xlib 'fallback' video renderer is the same size as the buffer created for software based conversion and scaling. Closes #9139 git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27393 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmythtv/videoout_xv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythtv/libs/libmythtv/videoout_xv.cpp b/mythtv/libs/libmythtv/videoout_xv.cpp
index 2be9583..b4f1c98 100644
--- a/mythtv/libs/libmythtv/videoout_xv.cpp
+++ b/mythtv/libs/libmythtv/videoout_xv.cpp
@@ -1766,8 +1766,8 @@ bool VideoOutputXv::CreateBuffers(VOSType subtype)
Visual *visual = DefaultVisual(d, scrn);
XJ_non_xv_image = XCreateImage(d, visual, disp->GetDepth(),
ZPixmap, /*offset*/0, /*data*/0,
- display_visible_rect.width(),
- display_visible_rect.height(),
+ display_visible_rect.width() & ~0x1,
+ display_visible_rect.height() & ~0x1,
/*bitmap_pad*/8, 0);
if (!XJ_non_xv_image)