From 79a8018ca2143e74fbf881393cdf64c92503b1be Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Jan 2014 16:45:59 +0100 Subject: 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. --- player/dvdnav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') 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; -- cgit v1.2.3