Ticket #3797: pillarbars.diff
File pillarbars.diff, 3.5 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/videooutbase.cpp
1121 1121 1122 1122 letterAdj = video_aspect / letterboxed_video_aspect; 1123 1123 } 1124 if (letterbox = kLetterbox_Gray_Pillarboxes) 1125 { 1126 letterXadj = max(-display_video_rect.left(), 0); 1127 float xadj = (float) video_rect.width() / display_visible_rect.width(); 1128 letterXadj = (int) (letterXadj * xadj); 1124 1129 1130 float yadj = (float)video_rect.height() /display_visible_rect.height(); 1131 letterYadj = max(-display_video_rect.top(), 0); 1132 letterYadj = (int) (letterYadj * yadj); 1133 1134 letterAdj = video_aspect / letterboxed_video_aspect; 1135 } 1136 1125 1137 // adjust for non-square pixels on screen 1126 1138 float dispPixelAdj = (GetDisplayAspect() * video_dim.height()) / 1127 1139 video_dim.width(); -
libs/libmythtv/videoout_xv.h
186 186 int XJ_screenwidth; 187 187 int XJ_screenheight; 188 188 bool XJ_started; 189 Colormap cmap; 190 XColor color, colorrgb; 189 191 190 192 // Used for all non-XvMC drawing 191 193 VideoFrame av_pause_frame; -
libs/libmythtv/videoout_xv.cpp
2559 2559 needrepaint = false; 2560 2560 xv_need_bobdeint_repaint = false; 2561 2561 2562 // Draw black in masked areas 2563 XSetForeground(XJ_disp, XJ_gc, XJ_black); 2562 // Set the masked area to black unless Gray Pillarbars was selected 2563 cmap = DefaultColormap (XJ_disp, XJ_screen_num); 2564 db_letterbox = gContext->GetNumSetting("AspectOverride", 0); 2565 if (kLetterbox_Gray_Pillarboxes == db_letterbox) 2566 { 2567 XAllocNamedColor (XJ_disp, cmap, "gray20", &color, &colorrgb); 2568 } 2569 else 2570 { 2571 XAllocNamedColor (XJ_disp, cmap, "gray0", &color, &colorrgb); 2572 } 2564 2573 2574 // Draw black or gray in masked areas 2575 XSetForeground(XJ_disp, XJ_gc, color.pixel); 2576 2565 2577 if (display_video_rect.left() > display_visible_rect.left()) 2566 2578 { // left 2567 2579 XFillRectangle(XJ_disp, XJ_curwin, XJ_gc, -
libs/libmythtv/videooutbase.h
99 99 kLetterbox_16_9_Zoom, 100 100 kLetterbox_16_9_Stretch, 101 101 kLetterbox_Fill, 102 kLetterbox_Gray_Pillarboxes, 102 103 kLetterbox_END 103 104 }; 104 105 -
programs/mythfrontend/globalsettings.cpp
1550 1550 gc->addSelection(QObject::tr("16/9 Zoom"), "4"); 1551 1551 gc->addSelection(QObject::tr("16/9 Stretch"), "5"); 1552 1552 gc->addSelection(QObject::tr("Fill"), "6"); 1553 gc->addSelection(QObject::tr("Gray Pillarboxes"), "7"); 1553 1554 gc->setHelpText(QObject::tr("This will override any aspect ratio in the " 1554 1555 "recorded stream, the same as pressing the W Key during " 1555 1556 "playback. Fill will \"fill\" the screen with the image "