Removed warnings by assigning to bool

This commit is contained in:
Charles Rozhon 2014-08-16 13:23:22 -05:00
parent 07f72b1afc
commit 6f34a8ac47
1 changed files with 3 additions and 3 deletions

View File

@ -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