diff --git a/src/SFML/Window/Win32/WglContext.cpp b/src/SFML/Window/Win32/WglContext.cpp index d5d9567f..7d9cc43e 100644 --- a/src/SFML/Window/Win32/WglContext.cpp +++ b/src/SFML/Window/Win32/WglContext.cpp @@ -166,7 +166,7 @@ void WglContext::createContext(WglContext* shared, unsigned int bitsPerPixel, co WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB, WGL_DOUBLE_BUFFER_ARB, GL_TRUE, WGL_SAMPLE_BUFFERS_ARB, (m_settings.antialiasingLevel ? GL_TRUE : GL_FALSE), - WGL_SAMPLES_ARB, m_settings.antialiasingLevel, + WGL_SAMPLES_ARB, static_cast(m_settings.antialiasingLevel), 0, 0 }; @@ -267,8 +267,8 @@ void WglContext::createContext(WglContext* shared, unsigned int bitsPerPixel, co { int attributes[] = { - WGL_CONTEXT_MAJOR_VERSION_ARB, m_settings.majorVersion, - WGL_CONTEXT_MINOR_VERSION_ARB, m_settings.minorVersion, + WGL_CONTEXT_MAJOR_VERSION_ARB, static_cast(m_settings.majorVersion), + WGL_CONTEXT_MINOR_VERSION_ARB, static_cast(m_settings.minorVersion), WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 0, 0 }; diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index f5eef741..ea277df0 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -241,7 +241,7 @@ void WindowImplWin32::setSize(const Vector2u& size) { // SetWindowPos wants the total size of the window (including title bar and borders), // so we have to compute it - RECT rectangle = {0, 0, size.x, size.y}; + RECT rectangle = {0, 0, static_cast(size.x), static_cast(size.y)}; AdjustWindowRect(&rectangle, GetWindowLong(m_handle, GWL_STYLE), false); int width = rectangle.right - rectangle.left; int height = rectangle.bottom - rectangle.top;