summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPFunctions.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-16 15:56:52 -0400
committerLioncash <mathew1800@gmail.com>2014-08-16 15:56:52 -0400
commitbc1d9056cc38b4b0b50ad4478280a1f3b1c9e8a9 (patch)
treeffb9b023beb3bcde38783d33243614715a244547 /Source/Core/VideoCommon/BPFunctions.cpp
parent07f72b1afc35dcebb0ce0539dd917342751563de (diff)
parent6f34a8ac47178a926d1107af5b797ce7c4c55bf9 (diff)
Merge pull request #818 from ChuckRozhon/videocommon_bool_warnings
Removed warnings by assigning to bool
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
-rw-r--r--Source/Core/VideoCommon/BPFunctions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp
index f903c39917..d2771a7b65 100644
--- a/Source/Core/VideoCommon/BPFunctions.cpp
+++ b/Source/Core/VideoCommon/BPFunctions.cpp
@@ -120,9 +120,9 @@ void CopyEFB(u32 dstAddr, const EFBRectangle& srcRect,
*/
void ClearScreen(const EFBRectangle &rc)
{
- bool colorEnable = bpmem.blendmode.colorupdate;
- bool alphaEnable = bpmem.blendmode.alphaupdate;
- bool zEnable = bpmem.zmode.updateenable;
+ bool colorEnable = (bpmem.blendmode.colorupdate != 0);
+ bool alphaEnable = (bpmem.blendmode.alphaupdate != 0);
+ bool zEnable = (bpmem.zmode.updateenable != 0);
auto pixel_format = bpmem.zcontrol.pixel_format;
// (1): Disable unused color channels