mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Remove the min/max functions in CommonFuncs.
The algorithm header has the same functions.
This commit is contained in:
parent
3097345929
commit
49b0eef393
29 changed files with 104 additions and 99 deletions
|
@ -2,6 +2,7 @@
|
|||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
#include "Common/Common.h"
|
||||
|
@ -2037,8 +2038,8 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in
|
|||
if ((!TexFmt_Overlay_Enable) || (retval == PC_TEX_FMT_NONE))
|
||||
return retval;
|
||||
|
||||
int w = min(width, 40);
|
||||
int h = min(height, 10);
|
||||
int w = std::min(width, 40);
|
||||
int h = std::min(height, 10);
|
||||
|
||||
int xoff = (width - w) >> 1;
|
||||
int yoff = (height - h) >> 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue