Permalink
Browse files

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

0 comments on commit d968edb

Please sign in to comment.