Added support for BBC's 16:9 overscan standard.

Originally committed to SVN as r1314.
This commit is contained in:
Rodrigo Braz Monteiro 2007-06-28 23:27:37 +00:00
parent b8d5125d6c
commit 7082e21765

View file

@ -296,10 +296,22 @@ void VideoDisplay::DrawTVEffects() {
// Draw overscan mask
if (drawOverscan) {
// Parameters
// Get aspect ration
double ar = context->GetAspectRatioValue();
// Based on BBC's guidelines: http://www.bbc.co.uk/guidelines/dq/pdf/tv/tv_standards_london.pdf
// 16:9 or wider
if (ar > 1.75) {
DrawOverscanMask(int(sw * 0.1),int(sh * 0.05),wxColour(30,70,200),0.5);
DrawOverscanMask(int(sw * 0.035),int(sh * 0.035),wxColour(30,70,200),0.5);
}
// Less wide than 16:9 (use 4:3 standard)
else {
DrawOverscanMask(int(sw * 0.067),int(sh * 0.05),wxColour(30,70,200),0.5);
DrawOverscanMask(int(sw * 0.033),int(sh * 0.035),wxColour(30,70,200),0.5);
}
}
}