Don't immediately change buffer width/height for melonDS video buffer reallocation

They'll get changed later anyways
This commit is contained in:
CasualPokePlayer 2024-10-14 23:54:02 -07:00
parent 670eaf346a
commit c703b5f6a2
1 changed files with 3 additions and 3 deletions

View File

@ -139,9 +139,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
// update buffer width/height for scaling
if (_activeSyncSettings.GLScaleFactor > 1)
{
BufferWidth = (256 * _activeSyncSettings.GLScaleFactor) * 3 + ((128 * _activeSyncSettings.GLScaleFactor) * 4 / 3) + 1;
BufferHeight = (384 / 2 * _activeSyncSettings.GLScaleFactor) * 2 + (128 * _activeSyncSettings.GLScaleFactor);
_videoBuffer = new int[BufferWidth * BufferHeight];
var maxWidth = (256 * _activeSyncSettings.GLScaleFactor) * 3 + ((128 * _activeSyncSettings.GLScaleFactor) * 4 / 3) + 1;
var maxHeight = (384 / 2 * _activeSyncSettings.GLScaleFactor) * 2 + (128 * _activeSyncSettings.GLScaleFactor);
_videoBuffer = new int[maxWidth * maxHeight];
}
}
}