diff options
author | wm4 <wm4@nowhere> | 2012-10-27 18:06:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:45 +0100 |
commit | 9ba52ea6efd41db9dbd08311380f7fa633e22aa2 (patch) | |
tree | 698757630c88e96f323bc66461045234505ace91 /libvo/vo_x11.c | |
parent | d9839fe8623c855b6b335df3a5b9783e3ed22266 (diff) | |
download | mpv-9ba52ea6efd41db9dbd08311380f7fa633e22aa2.tar.bz2 mpv-9ba52ea6efd41db9dbd08311380f7fa633e22aa2.tar.xz |
screenshot, draw_bmp: use colorspace passed with mp_image
Remove the explicit struct mp_csp_details parameters from all related
functions, and use mp_image.colorspace/levels instead.
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 587730a89a..24bc98ba7d 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -440,8 +440,6 @@ static void draw_osd(struct vo *vo, struct osd_state *osd) struct mp_image img = get_x_buffer(p); - struct mp_csp_details csp = MP_CSP_DETAILS_DEFAULTS; - struct mp_osd_res res = { .w = img.w, .h = img.h, @@ -449,7 +447,7 @@ static void draw_osd(struct vo *vo, struct osd_state *osd) .video_par = vo->aspdat.par, }; - osd_draw_on_image(osd, res, osd->vo_pts, 0, &img, &csp); + osd_draw_on_image(osd, res, osd->vo_pts, 0, &img); } static void flip_page(struct vo *vo) |