Mercurial > mplayer.hg
comparison libvo/video_out.c @ 29527:9ea49bcf3abc
Enable calc_src_dst_rects for windowed aspect and panscan.
author | reimar |
---|---|
date | Thu, 27 Aug 2009 19:13:19 +0000 |
parents | 779281d8cd80 |
children | fbb1f57a313e |
comparison
equal
deleted
inserted
replaced
29526:53a2b67e6290 | 29527:9ea49bcf3abc |
---|---|
409 src->left = 0; src->right = src_width; | 409 src->left = 0; src->right = src_width; |
410 src->top = 0; src->bottom = src_height; | 410 src->top = 0; src->bottom = src_height; |
411 if (borders) { | 411 if (borders) { |
412 borders->left = 0; borders->top = 0; | 412 borders->left = 0; borders->top = 0; |
413 } | 413 } |
414 if (vo_fs) { | 414 if (aspect_scaling()) { |
415 aspect(&scaled_width, &scaled_height, A_ZOOM); | 415 aspect(&scaled_width, &scaled_height, A_WINZOOM); |
416 panscan_calc(); | 416 panscan_calc_windowed(); |
417 scaled_width += vo_panscan_x; | 417 scaled_width += vo_panscan_x; |
418 scaled_height += vo_panscan_y; | 418 scaled_height += vo_panscan_y; |
419 if (borders) { | 419 if (borders) { |
420 borders->left = (vo_dwidth - scaled_width ) / 2; | 420 borders->left = (vo_dwidth - scaled_width ) / 2; |
421 borders->top = (vo_dheight - scaled_height) / 2; | 421 borders->top = (vo_dheight - scaled_height) / 2; |