summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/BPStructs.cpp
diff options
context:
space:
mode:
authordaco65 <daco65@gmail.com>2009-07-19 11:03:31 +0000
committerdaco65 <daco65@gmail.com>2009-07-19 11:03:31 +0000
commitd703b01f0cd7ed2889ad74170329b0771a29dfe9 (patch)
tree678dab9cae9b7f3370006d92fc111481a765de59 /Source/Core/VideoCommon/Src/BPStructs.cpp
parent1157055ec64ba4a57683d89cd553235ed3d74131 (diff)
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
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/BPStructs.cpp4
1 files 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;
}