VideoInterface: Fix code style/indentation

This commit is contained in:
Lioncash 2016-01-19 20:09:09 -05:00
parent 991d3f6f96
commit 42e9927bca

View File

@ -646,7 +646,8 @@ static void BeginField(FieldType field)
xfbAddr = GetXFBAddressTop();
}
if (interlaced_xfb && g_ActiveConfig.bForceProgressive) {
if (interlaced_xfb && g_ActiveConfig.bForceProgressive)
{
// Strictly speaking, in interlaced mode, we're only supposed to read
// half of the lines of the XFB, and use that to display a field; the
// other lines are unspecified junk. However, in practice, we can
@ -662,12 +663,11 @@ static void BeginField(FieldType field)
// has the first line. For the field with the second line, we
// offset the xfb by (-stride_of_one_line) to get the start
// address of the full xfb.
if ((field == FieldType::FIELD_ODD) && (m_VBlankTimingOdd.PRB == m_VBlankTimingEven.PRB + 1)) {
xfbAddr -= (fbStride * 2);
}
if ((field == FieldType::FIELD_EVEN) && (m_VBlankTimingOdd.PRB == m_VBlankTimingEven.PRB - 1)) {
xfbAddr -= (fbStride * 2);
}
if (field == FieldType::FIELD_ODD && m_VBlankTimingOdd.PRB == m_VBlankTimingEven.PRB + 1)
xfbAddr -= fbStride * 2;
if (field == FieldType::FIELD_EVEN && m_VBlankTimingOdd.PRB == m_VBlankTimingEven.PRB - 1)
xfbAddr -= fbStride * 2;
}
static const char* const fieldTypeNames[] = { "Odd", "Even" };