Skip to content

Commit

Permalink
VideoInterface: Don't crash when running Wii Freeloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer64ytb committed Feb 7, 2025
1 parent 4a7d978 commit 2d0e4ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/HW/VideoInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d0e4ab

Please sign in to comment.