ndex: mythtv/libs/libmythtv/videoout_xv.cpp
|
|
|
426 | 426 | display_dim.setWidth((int) round(300 * pixel_aspect)); |
427 | 427 | } |
428 | 428 | |
429 | | // If we are using XRandR, use the aspect ratio from it instead... |
430 | | if (display_res) |
431 | | display_aspect = display_res->GetAspectRatio(); |
432 | | |
433 | 429 | // If we are using Xinerama the display dimensions can not be trusted. |
434 | 430 | // We need to use the Xinerama monitor aspect ratio from the DB to set |
435 | 431 | // the physical screen width. This assumes the height is correct, which |
… |
… |
|
458 | 454 | // Now that we know the physical monitor size, we can |
459 | 455 | // calculate the display aspect ratio pretty simply... |
460 | 456 | display_aspect = ((float)display_dim.width()) / display_dim.height(); |
461 | | |
| 457 | // If we are using XRandR, use the aspect ratio from it instead... |
| 458 | if (display_res) |
| 459 | display_aspect = display_res->GetAspectRatio(); |
462 | 460 | VERBOSE(VB_PLAYBACK, LOC + |
463 | 461 | QString("Estimated window dimensions: %1x%2 mm Aspect: %3") |
464 | 462 | .arg(display_dim.width()).arg(display_dim.height()) |