GPU: Properly initialize the newer NDSDisplayInfo fields.

- This has the side-effect of having the Windows port’s display window
start up with a white screen and HUD showing (if enabled) just like
before, rather than a black screen and HUD possibly hidden.
This commit is contained in:
rogerman 2017-11-20 23:51:42 -08:00
parent 25eae6e1ed
commit 4269925258
1 changed files with 15 additions and 6 deletions

View File

@ -7430,6 +7430,15 @@ GPUSubsystem::GPUSubsystem()
_displayInfo.renderedBuffer[NDSDisplayID_Main] = _displayInfo.nativeBuffer[NDSDisplayID_Main];
_displayInfo.renderedBuffer[NDSDisplayID_Touch] = _displayInfo.nativeBuffer[NDSDisplayID_Touch];
_displayInfo.masterBrightnessDiffersPerLine[NDSDisplayID_Main] = false;
_displayInfo.masterBrightnessDiffersPerLine[NDSDisplayID_Touch] = false;
_displayInfo.backlightIntensity[NDSDisplayID_Main] = 1.0f;
_displayInfo.backlightIntensity[NDSDisplayID_Touch] = 1.0f;
_displayInfo.needConvertColorFormat[NDSDisplayID_Main] = false;
_displayInfo.needConvertColorFormat[NDSDisplayID_Touch] = false;
_displayInfo.needApplyMasterBrightness[NDSDisplayID_Main] = false;
_displayInfo.needApplyMasterBrightness[NDSDisplayID_Touch] = false;
ClearWithColor(0x8000);
}