Ticket #3797: pillarbars.3.diff
File pillarbars.3.diff, 2.5 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/videoout_xv.h
219 219 int XJ_screenwidth; 220 220 int XJ_screenheight; 221 221 bool XJ_started; 222 Colormap cmap; 223 XColor color, colorrgb; 222 224 223 225 // Used for all non-XvMC drawing 224 226 VideoFrame av_pause_frame; -
libs/libmythtv/videoout_xv.cpp
3185 3185 needrepaint = false; 3186 3186 xv_need_bobdeint_repaint = false; 3187 3187 3188 // Draw black in masked areas 3189 XSetForeground(XJ_disp, XJ_gc, XJ_black); 3188 // Set the masked area to black unless Gray Pillarbars was selected 3189 cmap = DefaultColormap (XJ_disp, XJ_screen_num); 3190 int db_graypillars = gContext->GetNumSetting("GrayPillars", 0); 3191 if (db_graypillars == 1) 3192 { 3193 XAllocNamedColor (XJ_disp, cmap, "gray25", &color, &colorrgb); 3194 } 3195 else 3196 { 3197 XAllocNamedColor (XJ_disp, cmap, "gray0", &color, &colorrgb); 3198 } 3190 3199 3200 // Draw black or gray in masked areas 3201 XSetForeground(XJ_disp, XJ_gc, color.pixel); 3202 3191 3203 if (display_video_rect.left() > display_visible_rect.left()) 3192 3204 { // left 3193 3205 XFillRectangle(XJ_disp, XJ_curwin, XJ_gc, -
programs/mythfrontend/globalsettings.cpp
2098 2098 return gc; 2099 2099 } 2100 2100 2101 static HostCheckBox *GrayPillars() 2102 { 2103 HostCheckBox *gc = new HostCheckBox("GrayPillars"); 2104 gc->setLabel(QObject::tr("Make pillarboxes gray")); 2105 gc->setValue(true); 2106 gc->setHelpText(QObject::tr("If enabled, Pillarboxes will be gray instead of black. " 2107 "Useful for people with screens subject to burn-in.")); 2108 return gc; 2109 } 2110 2101 2111 static HostComboBox *AspectOverride() 2102 2112 { 2103 2113 HostComboBox *gc = new HostComboBox("AspectOverride"); … … 4379 4389 oscan->addChild(ocol2); 4380 4390 4381 4391 general2->addChild(oscan); 4392 general2->addChild(GrayPillars()); 4382 4393 general2->addChild(AspectOverride()); 4383 4394 general2->addChild(AdjustFill()); 4384 4395 general2->addChild(PIPLocationComboBox());