mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 11:54:27 +00:00
Merge pull request #8436 from JosJuice/vi-wii-freeloader
VideoInterface: Don't crash when running Wii Freeloader
This commit is contained in:
commit
9db1ce8ef9
@ -747,7 +747,9 @@ static void LogField(FieldType field, u32 xfb_address)
|
|||||||
static void BeginField(FieldType field, u64 ticks)
|
static void BeginField(FieldType field, u64 ticks)
|
||||||
{
|
{
|
||||||
// Could we fit a second line of data in the stride?
|
// 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 =
|
bool potentially_interlaced_xfb =
|
||||||
|
m_PictureConfiguration.WPL != 0 &&
|
||||||
((m_PictureConfiguration.STD / m_PictureConfiguration.WPL) == 2);
|
((m_PictureConfiguration.STD / m_PictureConfiguration.WPL) == 2);
|
||||||
// Are there an odd number of half-lines per field (definition of interlaced video)
|
// Are there an odd number of half-lines per field (definition of interlaced video)
|
||||||
bool interlaced_video_mode = (GetHalfLinesPerEvenField() & 1) == 1;
|
bool interlaced_video_mode = (GetHalfLinesPerEvenField() & 1) == 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user