- Fix HOFS bug when reading back the 3D framebuffer. Tested in Nanostray 2 by explosions that cause the screen to shake. (Regression from r5210.)
This commit is contained in:
rogerman 2015-06-20 01:32:32 +00:00
parent d28e49dd2b
commit 3b332f3a12
1 changed files with 1 additions and 1 deletions

View File

@ -2231,7 +2231,7 @@ PLAIN_CLEAR:
{
gpu->currBgNum = 0;
const u16 hofs = (u16)_gpuDstPitchIndex[gpu->getHOFS(layerNum)];
const u16 hofs = (u16)( ((float)gpu->getHOFS(layerNum) * _gpuWidthScale) + 0.5f );
u16 *oldDstLine = dstLine;
for (size_t lineIndex = 0; lineIndex < _gpuDstLineCount[l]; lineIndex++, dstLine += _gpuFramebufferWidth)