do the rounding in the if, shouldn't cause trouble afaik. (pso kept spamming logs under, cause xfblines was 574.205566)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3851 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2009-07-19 11:03:31 +00:00
parent 1157055ec6
commit d703b01f0c

View File

@ -214,9 +214,9 @@ void BPWritten(const Bypass& bp)
yScale = (float)bpmem.dispcopyyscale / 256.0f;
float xfbLines = ((bpmem.copyTexSrcWH.y + 1.0f) * yScale);
if (xfbLines > MAX_XFB_HEIGHT)
if ((u32)xfbLines > MAX_XFB_HEIGHT)
{
WARN_LOG(VIDEO, "Tried to scale EFB to too many XFB lines (%u)", (u32)xfbLines);
WARN_LOG(VIDEO, "Tried to scale EFB to too many XFB lines (%f)", xfbLines);
xfbLines = MAX_XFB_HEIGHT;
}