summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index 9b8922c39a..1c3177cff7 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -296,11 +296,8 @@ static char *gen_fname(screenshot_ctx *ctx, const char *file_ext)
static void add_subs(struct MPContext *mpctx, struct mp_image *image)
{
- int d_w = image->display_w ? image->display_w : image->w;
- int d_h = image->display_h ? image->display_h : image->h;
-
double sar = (double)image->w / image->h;
- double dar = (double)d_w / d_h;
+ double dar = (double)image->params.d_w / image->params.d_h;
struct mp_osd_res res = {
.w = image->w,
.h = image->h,