Ticket #3797: pillarbars.2.diff
File pillarbars.2.diff, 2.5 KB (added by , 18 years ago) |
---|
-
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 int db_graypillars = gContext->GetNumSetting("GrayPillars", 0); 2565 if (db_graypillars == 1) 2566 { 2567 XAllocNamedColor (XJ_disp, cmap, "gray25", &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, -
programs/mythfrontend/globalsettings.cpp
1539 1539 return gc; 1540 1540 } 1541 1541 1542 static HostCheckBox *GrayPillars() 1543 { 1544 HostCheckBox *gc = new HostCheckBox("GrayPillars"); 1545 gc->setLabel(QObject::tr("Make pillarboxes gray")); 1546 gc->setValue(true); 1547 gc->setHelpText(QObject::tr("If enabled, Pillarboxes will be gray instead of black. " 1548 "Useful for people with screens subject to burn-in.")); 1549 return gc; 1550 } 1551 1542 1552 static HostComboBox *AspectOverride() 1543 1553 { 1544 1554 HostComboBox *gc = new HostComboBox("AspectOverride"); … … 3617 3627 general->addChild(RealtimePriority()); 3618 3628 general->addChild(UseVideoTimebase()); 3619 3629 general->addChild(DecodeExtraAudio()); 3630 general->addChild(GrayPillars()); 3620 3631 general->addChild(AspectOverride()); 3621 3632 general->addChild(PIPLocation()); 3622 3633 addChild(general);