mirror of https://github.com/mpv-player/mpv
vo: minor cosmetic change
This commit is contained in:
parent
b430c886aa
commit
1e818b130a
|
@ -437,8 +437,7 @@ int vo_reconfig(struct vo *vo, struct mp_image_params *params, int flags)
|
||||||
|
|
||||||
if (vo_control(vo, VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) {
|
if (vo_control(vo, VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) {
|
||||||
int w = params->d_w, h = params->d_h;
|
int w = params->d_w, h = params->d_h;
|
||||||
if ((vo->driver->caps & VO_CAP_ROTATE90) &&
|
if ((vo->driver->caps & VO_CAP_ROTATE90) && params->rotate % 180 == 90)
|
||||||
params->rotate % 180 == 90)
|
|
||||||
MPSWAP(int, w, h);
|
MPSWAP(int, w, h);
|
||||||
determine_window_geometry(vo, w, h);
|
determine_window_geometry(vo, w, h);
|
||||||
d_width = vo->dwidth;
|
d_width = vo->dwidth;
|
||||||
|
|
Loading…
Reference in New Issue