GPU: Fix graphical inconsistencies with BG extended layers using custom VRAM.

(Regression from commit 36e03fe.)
This commit is contained in:
rogerman 2016-12-29 17:36:31 -08:00
parent 000efb1095
commit c9d5d69c06
1 changed files with 1 additions and 1 deletions

View File

@ -3054,7 +3054,7 @@ void GPUEngineBase::_RenderLine_BGExtended(GPUEngineCompositorInfo &compInfo, co
const bool isRotationScaled = ( (param.BGnPA.value != 0x100) ||
(param.BGnPC.value != 0) ||
(param.BGnX.value != 0) ||
(param.BGnY.value != 0) );
(param.BGnY.value != (0x100 * compInfo.line.indexNative)) );
if (!isRotationScaled)
{
const size_t vramPixel = (size_t)((u8 *)MMU_gpu_map(compInfo.renderState.selectedBGLayer->BMPAddress) - MMU.ARM9_LCD) / sizeof(u16);