Code cleanup.

This commit is contained in:
spx
2011-09-08 04:35:04 +00:00
parent 782fb0fba6
commit 6b06548260
3 changed files with 10 additions and 10 deletions

View File

@ -313,8 +313,8 @@ bool CMeterButton::MouseMove(POINT pos)
}
else
{
// If the left button is not down anymore the cliked state needs to be set false
if ((GetKeyState(VK_LBUTTON) & 0x8000) == 0)
// If the left button is not down anymore the clicked state needs to be set false
if (!(GetKeyState(VK_LBUTTON) < 0))
{
m_Clicked = false;
}