summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-01-19 20:09:09 -0500
committerLioncash <mathew1800@gmail.com>2016-01-19 20:16:18 -0500
commit42e9927bcac536bbed257dac7acbdf39402c8664 (patch)
tree96956871cf92a924ba24c3e63e903fd3d2f2a95c /Source/Core
parent991d3f6f9691919e9ae0a53c5806caaf4e26b9de (diff)
VideoInterface: Fix code style/indentation
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/VideoInterface.cpp24
1 files 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" };