Skip to content

Commit

Permalink
DVDRingBuffer: Specify the stride for the dvd button QImage.
Browse files Browse the repository at this point in the history
Refs #9860

Signed-off-by: Mark Kendall <mkendall@mythtv.org>
  • Loading branch information
martin authored and Mark Kendall committed Jun 23, 2011
1 parent 2f899ff commit 2f52fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/subtitlescreen.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2f52fae

Please sign in to comment.