From 42e9927bcac536bbed257dac7acbdf39402c8664 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 Jan 2016 20:09:09 -0500 Subject: [PATCH] VideoInterface: Fix code style/indentation --- Source/Core/Core/HW/VideoInterface.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/Core/Core/HW/VideoInterface.cpp b/Source/Core/Core/HW/VideoInterface.cpp index 6d43c861ea..8b09640424 100644 --- a/Source/Core/Core/HW/VideoInterface.cpp +++ b/Source/Core/Core/HW/VideoInterface.cpp @@ -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 @@ -657,17 +658,16 @@ static void BeginField(FieldType field) fbStride /= 2; fbHeight *= 2; - // PRB for the different fields should only ever differ by 1 in - // interlaced mode, and which is less determines which 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); - } + // PRB for the different fields should only ever differ by 1 in + // interlaced mode, and which is less determines which 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; } static const char* const fieldTypeNames[] = { "Odd", "Even" };