Ticket #3958: vert_distort_14488.patch

File vert_distort_14488.patch, 2.3 KB (added by mark_kiddy@…, 17 years ago)

complete patch

  • libs/libmythtv/tv_play.cpp

     
    55575557        case kAdjustFill_Half:        text = tr("Half Zoom"); break;
    55585558        case kAdjustFill_Full:        text = tr("Full Zoom"); break;
    55595559        case kAdjustFill_Stretch:     text = tr("Zoom & Stretch"); break;
     5560        case kAdjustFill_Vert:        text = tr("Zoom Vertical"); break;
    55605561        default:                      text = tr("Off"); break;
    55615562    }
    55625563
     
    68766877                                 QString("%1").arg(kAdjustFill_Stretch),
    68776878                                 (adjustfill == kAdjustFill_Stretch) ? 1 : 0,
    68786879                                 NULL, "ADJUSTFILLGROUP");
     6880    subitem = new OSDGenericTree(item, tr("Vertical"), "TOGGLEFILL" +
     6881                                 QString("%1").arg(kAdjustFill_Vert),
     6882                                 (adjustfill == kAdjustFill_Vert) ? 1 : 0,
     6883                                 NULL, "ADJUSTFILLGROUP");
    68796884
    68806885    if (db_use_picture_attr)
    68816886    {
  • libs/libmythtv/videooutbase.cpp

     
    922922            display_video_rect.width()  * 4 / 3,
    923923            display_video_rect.height() * 4 / 3);
    924924    }
     925    else if (adjustfill == kAdjustFill_Vert)
     926    {
     927        // Zoom mode -- Expand by 4/3 and overscan.
     928        // 1/6 of original is 1/8 of new
     929        display_video_rect = QRect(
     930            display_video_rect.left(),
     931            display_video_rect.top()  - (display_video_rect.height() / 6),
     932            display_video_rect.width(),
     933            display_video_rect.height() * 4 / 3);
     934    }
    925935    else if (adjustfill == kAdjustFill_Half)
    926936    {
    927937        // Zoom mode -- Expand by 7/6 and overscan.
  • libs/libmythtv/videooutbase.h

     
    5353    kAdjustFill_Half,
    5454    kAdjustFill_Full,
    5555    kAdjustFill_Stretch,
     56    kAdjustFill_Vert,
    5657    kAdjustFill_END
    5758};
    5859