Permalink
Browse files

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
  • Loading branch information...
1 parent 206d42c commit 506987ef89d37c50d36e2bec2bc0c25102833ee7 Mark Kendall committed Dec 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit 506987e

Please sign in to comment.