From d703b01f0cd7ed2889ad74170329b0771a29dfe9 Mon Sep 17 00:00:00 2001 From: daco65 Date: Sun, 19 Jul 2009 11:03:31 +0000 Subject: [PATCH] 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 --- Source/Core/VideoCommon/Src/BPStructs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp index 678242d348..e330e984cb 100644 --- a/Source/Core/VideoCommon/Src/BPStructs.cpp +++ b/Source/Core/VideoCommon/Src/BPStructs.cpp @@ -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; }