mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
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.
This commit is contained in:
parent
6e6291dcfd
commit
79a8018ca2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user