Added comment

This commit is contained in:
shachar700 2025-12-10 13:51:47 +02:00 committed by GitHub
parent eb1a6d311a
commit 5240ee1515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1316,6 +1316,9 @@ static void SetupPokenavMenuScanlineEffects(void)
SetGpuRegBits(REG_OFFSET_WININ, WININ_WIN0_ALL);
SetGpuRegBits(REG_OFFSET_WINOUT, WINOUT_WIN01_BG_ALL | WINOUT_WIN01_OBJ);
#ifdef BUGFIX
// BUGFIX: Use full register write instead of |=.
// SetGpuRegBits left leftover window values from the Party screen,
// causing partial/missing glow highlights. SetGpuReg clears them fully.
SetGpuReg(REG_OFFSET_WIN0V, DISPLAY_HEIGHT);
#else
SetGpuRegBits(REG_OFFSET_WIN0V, DISPLAY_HEIGHT);