Skip to content
Browse files

DVDRingBuffer: Specify the stride for the dvd button QImage.

Refs #9860

Signed-off-by: Mark Kendall <mkendall@mythtv.org>
  • Loading branch information...
1 parent 2f899ff commit 2f52faef1ded62e474c44562ef66b100c6e57de4 martin committed with Mark Kendall Jun 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/subtitlescreen.cpp
View
2 mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -533,7 +533,7 @@ void SubtitleScreen::DisplayDVDButton(AVSubtitle* dvdButton, QRect &buttonPos)
uint h = hl_button->h;
uint w = hl_button->w;
QRect rect = QRect(hl_button->x, hl_button->y, w, h);
- QImage bg_image(hl_button->pict.data[0], w, h, QImage::Format_Indexed8);
+ QImage bg_image(hl_button->pict.data[0], w, h, w, QImage::Format_Indexed8);
uint32_t *bgpalette = (uint32_t *)(hl_button->pict.data[1]);
bool blank = true;

0 comments on commit 2f52fae

Please sign in to comment.
Something went wrong with that request. Please try again.