diff options
author | wm4 <wm4@nowhere> | 2014-01-03 16:45:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-03 16:45:59 +0100 |
commit | 79a8018ca2143e74fbf881393cdf64c92503b1be (patch) | |
tree | dab99093fb80b879e7835fd51277f1723d861f42 /player/dvdnav.c | |
parent | 6e6291dcfd1d4d7cebd16790a89004e60e970eb2 (diff) | |
download | mpv-79a8018ca2143e74fbf881393cdf64c92503b1be.tar.bz2 mpv-79a8018ca2143e74fbf881393cdf64c92503b1be.tar.xz |
dvdnav: set correct stride for fake highlights
This didn't really matter, because the fake highlight rectangle is in a
single color, and every pixel has the same color value.
Diffstat (limited to 'player/dvdnav.c')
-rw-r--r-- | player/dvdnav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/dvdnav.c b/player/dvdnav.c index bc14e7c35f..7e28c1922b 100644 --- a/player/dvdnav.c +++ b/player/dvdnav.c @@ -243,7 +243,7 @@ void mp_nav_get_highlight(struct osd_state *osd, struct mp_osd_res res, sub->y = nav->highlight[1]; sub->w = MPCLAMP(nav->highlight[2] - sub->x, 0, sizes[0]); sub->h = MPCLAMP(nav->highlight[3] - sub->y, 0, sizes[1]); - sub->stride = sub->w; + sub->stride = sub->w * 4; out_imgs->format = SUBBITMAP_RGBA; out_imgs->parts = sub; out_imgs->num_parts = sub->w > 0 && sub->h > 0 && nav->hi_visible; |