summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2010-12-01 01:49:06 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2010-12-01 01:49:06 (GMT)
commitd968edb4c65e8fc10b87c60ad6fdce2327c886db (patch)
tree8d7854b5f3de4246a9d81da7660adde01a017756
parent651836bf2bf86c6f6006f834761e152e6f02bb9d (diff)
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. Refs #9139 git-svn-id: http://svn.mythtv.org/svn/trunk@27392 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 b280132..8e3373e 100644
--- a/mythtv/libs/libmythtv/videoout_xv.cpp
+++ b/mythtv/libs/libmythtv/videoout_xv.cpp
@@ -1764,8 +1764,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)