- Replace MIN() from templates.h with version provided in STL.

This commit is contained in:
Mitch Richters 2021-10-30 19:21:43 +11:00 committed by Christoph Oelckers
parent 9894729fc2
commit b02a6a3ec9
57 changed files with 145 additions and 164 deletions

View file

@ -219,8 +219,8 @@ void PolyFrameBuffer::RenderTextureView(FCanvasTexture* tex, std::function<void(
IntRect bounds;
bounds.left = bounds.top = 0;
bounds.width = std::min(tex->GetWidth(), image->GetWidth());
bounds.height = std::min(tex->GetHeight(), image->GetHeight());
bounds.width = min(tex->GetWidth(), image->GetWidth());
bounds.height = min(tex->GetHeight(), image->GetHeight());
renderFunc(bounds);