diff --git a/dotnet/extlibs/csfml-audio.dll b/dotnet/extlibs/csfml-audio.dll index ffc88410..daea5d97 100644 Binary files a/dotnet/extlibs/csfml-audio.dll and b/dotnet/extlibs/csfml-audio.dll differ diff --git a/dotnet/extlibs/csfml-graphics.dll b/dotnet/extlibs/csfml-graphics.dll index 416bb64f..ee9bcece 100644 Binary files a/dotnet/extlibs/csfml-graphics.dll and b/dotnet/extlibs/csfml-graphics.dll differ diff --git a/dotnet/extlibs/csfml-window.dll b/dotnet/extlibs/csfml-window.dll index 04fecc3d..2a041a51 100644 Binary files a/dotnet/extlibs/csfml-window.dll and b/dotnet/extlibs/csfml-window.dll differ diff --git a/dotnet/samples/opengl/sample-opengl.csproj b/dotnet/samples/opengl/sample-opengl.csproj index 4670690b..bb79e4b6 100644 --- a/dotnet/samples/opengl/sample-opengl.csproj +++ b/dotnet/samples/opengl/sample-opengl.csproj @@ -45,7 +45,8 @@ - + + diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index c36c70de..613f782e 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -522,8 +522,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) { // Mouse position is in screen coordinates, convert it to window coordinates POINT position; - position.x = LOWORD(lParam); - position.y = HIWORD(lParam); + position.x = static_cast(LOWORD(lParam)); + position.y = static_cast(HIWORD(lParam)); ScreenToClient(myHandle, &position); Event event; @@ -541,8 +541,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonPressed; event.MouseButton.Button = Mouse::Left; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -553,8 +553,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonReleased; event.MouseButton.Button = Mouse::Left; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -565,8 +565,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonPressed; event.MouseButton.Button = Mouse::Right; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -577,8 +577,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonReleased; event.MouseButton.Button = Mouse::Right; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -589,8 +589,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonPressed; event.MouseButton.Button = Mouse::Middle; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -601,8 +601,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonReleased; event.MouseButton.Button = Mouse::Middle; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -613,8 +613,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonPressed; event.MouseButton.Button = HIWORD(wParam) == XBUTTON1 ? Mouse::XButton1 : Mouse::XButton2; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -625,8 +625,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseButtonReleased; event.MouseButton.Button = HIWORD(wParam) == XBUTTON1 ? Mouse::XButton1 : Mouse::XButton2; - event.MouseButton.X = LOWORD(lParam); - event.MouseButton.Y = HIWORD(lParam); + event.MouseButton.X = static_cast(LOWORD(lParam)); + event.MouseButton.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; } @@ -652,8 +652,8 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam) Event event; event.Type = Event::MouseMoved; - event.MouseMove.X = LOWORD(lParam); - event.MouseMove.Y = HIWORD(lParam); + event.MouseMove.X = static_cast(LOWORD(lParam)); + event.MouseMove.Y = static_cast(HIWORD(lParam)); PushEvent(event); break; }