diff options
author | wm4 <wm4@nowhere> | 2012-12-22 21:46:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:11 +0100 |
commit | 0c5311f17cb9078f0ddde7c41cad61d00aea4a94 (patch) | |
tree | e8254feab42d21e0c6932ce68a34228529247f66 /video/out/vo_x11.c | |
parent | 15c7f7a33968edebe305e2845b32eb2383457d46 (diff) | |
download | mpv-0c5311f17cb9078f0ddde7c41cad61d00aea4a94.tar.bz2 mpv-0c5311f17cb9078f0ddde7c41cad61d00aea4a94.tar.xz |
video: cleanup: replace old mp_image function names
mp_image_alloc() also changes argument order compared to alloc_mpi().
The format now comes first, then width/height.
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r-- | video/out/vo_x11.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index 4bdb209891..5a81648233 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -449,8 +449,7 @@ static mp_image_t *get_screenshot(struct vo *vo) struct priv *p = vo->priv; struct mp_image img = get_x_buffer(p); - struct mp_image *res = alloc_mpi(img.w, img.h, img.imgfmt); - copy_mpi(res, &img); + struct mp_image *res = mp_image_new_copy(&img); mp_draw_sub_backup_restore(p->osd_backup, res); return res; |