Revert "replace all std::min/std::max with just min/max"

This reverts commit 28d967ccce.
This commit is contained in:
Ahmed Samy
2013-11-13 23:53:54 +02:00
parent 28d967ccce
commit 1711d8bdaf
19 changed files with 58 additions and 58 deletions

View File

@@ -89,7 +89,7 @@ bool AdaptativeFrameCounter::update()
void AdaptativeFrameCounter::setMaxFps(int maxFps)
{
maxFps = max(min(maxFps, 1000), 0);
maxFps = std::max(std::min(maxFps, 1000), 0);
if(maxFps != 0) {
m_bestFrameDelay = 1000000 / maxFps;

View File

@@ -209,7 +209,7 @@ const std::vector<Point>& BitmapFont::calculateGlyphsPositions(const std::string
lineWidths[lines] += m_glyphsSize[glyph].width() ;
if((i+1 != textLength && text[i+1] != '\n')) // only add space if letter is not the last or before a \n.
lineWidths[lines] += m_glyphSpacing.width();
maxLineWidth = max(maxLineWidth, lineWidths[lines]);
maxLineWidth = std::max(maxLineWidth, lineWidths[lines]);
}
}
}

View File

@@ -149,8 +149,8 @@ Size FrameBuffer::getSize()
{
if(m_fbo == 0) {
// the buffer size is limited by the window size
return Size(min(m_texture->getWidth(), g_window.getWidth()),
min(m_texture->getHeight(), g_window.getHeight()));
return Size(std::min(m_texture->getWidth(), g_window.getWidth()),
std::min(m_texture->getHeight(), g_window.getHeight()));
}
return m_texture->getSize();
}