Fixed some minor compile warnings
This commit is contained in:
parent
d9629cfca7
commit
c4999f0890
@ -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<int>(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<int>(m_settings.majorVersion),
|
||||
WGL_CONTEXT_MINOR_VERSION_ARB, static_cast<int>(m_settings.minorVersion),
|
||||
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
|
||||
0, 0
|
||||
};
|
||||
|
@ -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<long>(size.x), static_cast<long>(size.y)};
|
||||
AdjustWindowRect(&rectangle, GetWindowLong(m_handle, GWL_STYLE), false);
|
||||
int width = rectangle.right - rectangle.left;
|
||||
int height = rectangle.bottom - rectangle.top;
|
||||
|
Loading…
Reference in New Issue
Block a user