Minor code cleanup

This commit is contained in:
Alex Szpakowski
2014-05-01 14:12:21 -03:00
parent e667485f68
commit e4dc533bb2
26 changed files with 112 additions and 110 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ const char *Mouse::getName() const
}
Mouse::Mouse()
: curCursor(0)
: curCursor(nullptr)
{
}
@@ -187,7 +187,7 @@ void Mouse::setVisible(bool visible)
bool Mouse::isDown(Button *buttonlist) const
{
Uint32 buttonstate = SDL_GetMouseState(0, 0);
Uint32 buttonstate = SDL_GetMouseState(nullptr, nullptr);
for (Button button = *buttonlist; button != BUTTON_MAX_ENUM; button = *(++buttonlist))
{