Skip to content
Permalink
Browse files

Merge pull request #8436 from JosJuice/vi-wii-freeloader

VideoInterface: Don't crash when running Wii Freeloader
  • Loading branch information...
stenzek committed Nov 8, 2019
2 parents 28ce933 + 090f04e commit 9db1ce8ef9e67abb58b61634c88d6abd548d2177
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/Core/Core/HW/VideoInterface.cpp
@@ -747,7 +747,9 @@ static void LogField(FieldType field, u32 xfb_address)
static void BeginField(FieldType field, u64 ticks)
{
// Could we fit a second line of data in the stride?
// (Datel's Wii FreeLoaders are the only titles known to set WPL to 0)
bool potentially_interlaced_xfb =
m_PictureConfiguration.WPL != 0 &&
((m_PictureConfiguration.STD / m_PictureConfiguration.WPL) == 2);
// Are there an odd number of half-lines per field (definition of interlaced video)
bool interlaced_video_mode = (GetHalfLinesPerEvenField() & 1) == 1;

0 comments on commit 9db1ce8

Please sign in to comment.
You can’t perform that action at this time.