Skip to content

Commit

Permalink
GPU: Fix graphical inconsistencies with BG extended layers using cust…
Browse files Browse the repository at this point in the history
…om VRAM.

(Regression from commit 36e03fe.)
  • Loading branch information
rogerman committed Dec 30, 2016
1 parent 000efb1 commit c9d5d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desmume/src/GPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9d5d69

Please sign in to comment.