mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
microprofile: Use std::abs
Using the global-namespace C function will cause the wrong overload to get picked
This commit is contained in:
parent
d051bd3032
commit
aacc3a4a59
2
externals/microprofile/microprofileui.h
vendored
2
externals/microprofile/microprofileui.h
vendored
|
@ -879,7 +879,7 @@ void MicroProfileDrawDetailedBars(uint32_t nWidth, uint32_t nHeight, int nBaseY,
|
||||||
static int64_t nRefCpu = 0, nRefGpu = 0;
|
static int64_t nRefCpu = 0, nRefGpu = 0;
|
||||||
if(MicroProfileGetGpuTickReference(&nTickReferenceCpu, &nTickReferenceGpu))
|
if(MicroProfileGetGpuTickReference(&nTickReferenceCpu, &nTickReferenceGpu))
|
||||||
{
|
{
|
||||||
if(0 == nRefCpu || abs(nRefCpu-nBaseTicksCpu) > abs(nTickReferenceCpu-nBaseTicksCpu))
|
if(0 == nRefCpu || std::abs(nRefCpu-nBaseTicksCpu) > std::abs(nTickReferenceCpu-nBaseTicksCpu))
|
||||||
{
|
{
|
||||||
nRefCpu = nTickReferenceCpu;
|
nRefCpu = nTickReferenceCpu;
|
||||||
nRefGpu = nTickReferenceGpu;
|
nRefGpu = nTickReferenceGpu;
|
||||||
|
|
Loading…
Reference in a new issue