Fixed some VS warnings

Thanks to Fraggy again !


Former-commit-id: bd0eea66714701b065892d8b69d576e7b3615dd2
This commit is contained in:
Lynix
2013-09-21 00:10:10 +02:00
parent 6440d38c5c
commit 3167531b39
19 changed files with 95 additions and 73 deletions

View File

@@ -281,12 +281,12 @@ void NzWindowImpl::IgnoreNextMouseEvent(int mouseX, int mouseY)
bool NzWindowImpl::IsMinimized() const
{
return IsIconic(m_handle);
return IsIconic(m_handle) == TRUE;
}
bool NzWindowImpl::IsVisible() const
{
return IsWindowVisible(m_handle);
return IsWindowVisible(m_handle) == TRUE;
}
void NzWindowImpl::ProcessEvents(bool block)
@@ -800,7 +800,7 @@ bool NzWindowImpl::HandleMessage(HWND window, UINT message, WPARAM wParam, LPARA
{
NzEvent event;
event.type = nzEventType_MouseWheelMoved;
event.mouseWheel.delta = m_scrolling/WHEEL_DELTA;
event.mouseWheel.delta = static_cast<float>(m_scrolling/WHEEL_DELTA);
m_parent->PushEvent(event);
m_scrolling %= WHEEL_DELTA;
@@ -1001,7 +1001,7 @@ bool NzWindowImpl::Initialize()
windowClass.lpszMenuName = nullptr;
windowClass.style = CS_DBLCLKS; // Gestion du double-clic
return RegisterClassW(&windowClass);
return RegisterClassW(&windowClass) != 0;
}
void NzWindowImpl::Uninitialize()