Merge pull request #2942 from booto/xfb_lines
VideoCommon: xfb height calculation adjusted
This commit is contained in:
commit
ad978122d9
|
@ -241,7 +241,7 @@ static void BPWritten(const BPCmd& bp)
|
||||||
else
|
else
|
||||||
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
||||||
|
|
||||||
float num_xfb_lines = ((bpmem.copyTexSrcWH.y + 1.0f) * yScale);
|
float num_xfb_lines = 1.0f + bpmem.copyTexSrcWH.y * yScale;
|
||||||
|
|
||||||
u32 height = static_cast<u32>(num_xfb_lines);
|
u32 height = static_cast<u32>(num_xfb_lines);
|
||||||
if (height > MAX_XFB_HEIGHT)
|
if (height > MAX_XFB_HEIGHT)
|
||||||
|
|
Loading…
Reference in New Issue