From c9d5d69c0601c07e4b288dbb7b047eb3a7f85f6d Mon Sep 17 00:00:00 2001 From: rogerman Date: Thu, 29 Dec 2016 17:36:31 -0800 Subject: [PATCH] GPU: Fix graphical inconsistencies with BG extended layers using custom VRAM. (Regression from commit 36e03fe.) --- desmume/src/GPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index e9c43f3a7..965c85cfb 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -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);