mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
replace all std::min/std::max with just min/max
This errors out in MSVC since the inclusion of winsock2.h, CL uses the macro not the template version.
This commit is contained in:
@@ -149,8 +149,8 @@ Size FrameBuffer::getSize()
|
||||
{
|
||||
if(m_fbo == 0) {
|
||||
// the buffer size is limited by the window size
|
||||
return Size(std::min(m_texture->getWidth(), g_window.getWidth()),
|
||||
std::min(m_texture->getHeight(), g_window.getHeight()));
|
||||
return Size(min(m_texture->getWidth(), g_window.getWidth()),
|
||||
min(m_texture->getHeight(), g_window.getHeight()));
|
||||
}
|
||||
return m_texture->getSize();
|
||||
}
|
||||
|
Reference in New Issue
Block a user