diff options
author | wm4 <wm4@nowhere> | 2015-04-24 22:52:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-24 23:27:12 +0200 |
commit | 72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2 (patch) | |
tree | 5b2eea8fb06ad62cd60843d83587eca23f66b8a1 /video/out/win_state.c | |
parent | e11abdbad2fff17968c914212d5fd68d7536ddeb (diff) | |
download | mpv-72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2.tar.bz2 mpv-72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2.tar.xz |
player: add --window-scale option
Requested. Works similar to the property with the same name.
Diffstat (limited to 'video/out/win_state.c')
-rw-r--r-- | video/out/win_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/win_state.c b/video/out/win_state.c index af54f8215f..f48f628173 100644 --- a/video/out/win_state.c +++ b/video/out/win_state.c @@ -90,6 +90,8 @@ void vo_calc_window_geometry(struct vo *vo, const struct mp_rect *screen, int d_h = params.d_h; if ((vo->driver->caps & VO_CAP_ROTATE90) && params.rotate % 180 == 90) MPSWAP(int, d_w, d_h); + d_w = MPCLAMP(d_w * opts->window_scale, 1, 16000); + d_h = MPCLAMP(d_h * opts->window_scale, 1, 16000); int scr_w = screen->x1 - screen->x0; int scr_h = screen->y1 - screen->y0; |