Skip to content

Commit

Permalink
Fixed: ddboolean_t/bool comparison warning
Browse files Browse the repository at this point in the history
bool vs. int.
  • Loading branch information
skyjake committed Apr 1, 2012
1 parent 73b2591 commit a6ab225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/displaymode.cpp
Expand Up @@ -262,7 +262,7 @@ boolean DisplayMode_IsEqual(const DisplayMode* a, const DisplayMode* b)

int DisplayMode_Change(const DisplayMode* mode, boolean shouldCapture)
{
if(Mode::fromCurrent() == *mode && shouldCapture == captured)
if(Mode::fromCurrent() == *mode && !shouldCapture == !captured)
{
LOG_DEBUG("DisplayMode: Requested mode is the same as current, ignoring.");

Expand Down

0 comments on commit a6ab225

Please sign in to comment.