Fixed some minor compile warnings

This commit is contained in:
Laurent Gomila 2013-05-11 09:52:20 +02:00
parent d9629cfca7
commit c4999f0890
2 changed files with 4 additions and 4 deletions

View File

@ -166,7 +166,7 @@ void WglContext::createContext(WglContext* shared, unsigned int bitsPerPixel, co
WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB, WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB,
WGL_DOUBLE_BUFFER_ARB, GL_TRUE, WGL_DOUBLE_BUFFER_ARB, GL_TRUE,
WGL_SAMPLE_BUFFERS_ARB, (m_settings.antialiasingLevel ? GL_TRUE : GL_FALSE), WGL_SAMPLE_BUFFERS_ARB, (m_settings.antialiasingLevel ? GL_TRUE : GL_FALSE),
WGL_SAMPLES_ARB, m_settings.antialiasingLevel, WGL_SAMPLES_ARB, static_cast<int>(m_settings.antialiasingLevel),
0, 0 0, 0
}; };
@ -267,8 +267,8 @@ void WglContext::createContext(WglContext* shared, unsigned int bitsPerPixel, co
{ {
int attributes[] = int attributes[] =
{ {
WGL_CONTEXT_MAJOR_VERSION_ARB, m_settings.majorVersion, WGL_CONTEXT_MAJOR_VERSION_ARB, static_cast<int>(m_settings.majorVersion),
WGL_CONTEXT_MINOR_VERSION_ARB, m_settings.minorVersion, WGL_CONTEXT_MINOR_VERSION_ARB, static_cast<int>(m_settings.minorVersion),
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
0, 0 0, 0
}; };

View File

@ -241,7 +241,7 @@ void WindowImplWin32::setSize(const Vector2u& size)
{ {
// SetWindowPos wants the total size of the window (including title bar and borders), // SetWindowPos wants the total size of the window (including title bar and borders),
// so we have to compute it // so we have to compute it
RECT rectangle = {0, 0, size.x, size.y}; RECT rectangle = {0, 0, static_cast<long>(size.x), static_cast<long>(size.y)};
AdjustWindowRect(&rectangle, GetWindowLong(m_handle, GWL_STYLE), false); AdjustWindowRect(&rectangle, GetWindowLong(m_handle, GWL_STYLE), false);
int width = rectangle.right - rectangle.left; int width = rectangle.right - rectangle.left;
int height = rectangle.bottom - rectangle.top; int height = rectangle.bottom - rectangle.top;