Ticket #6383: aspect_ratio_on_5_4.diff
File aspect_ratio_on_5_4.diff, 766 bytes (added by , 15 years ago) |
---|
-
libs/libmythtv/videooutwindow.cpp
279 279 { 280 280 float disp_aspect = fix_aspect(GetDisplayAspect()); 281 281 float aspect_diff = disp_aspect - overriden_video_aspect; 282 bool aspects_match = abs(aspect_diff / disp_aspect) <= 0.1f; 282 283 //0.1f is to large (e. g. playing 4:3 video on 5:4 tft) 284 bool aspects_match = abs(aspect_diff / disp_aspect) <= 0.02f; 283 285 bool nomatch_with_fill = (!aspects_match && (adjustfill 284 286 == kAdjustFill_Stretch)); 285 287 bool nomatch_without_fill = (!aspects_match) && !nomatch_with_fill;