diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2016-03-27 06:01:29 +0200 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2016-04-23 05:48:58 +0200 |
commit | aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920 (patch) | |
tree | e4c114279e7ee0db5e83287b762cd8b05e578773 /externals/microprofile | |
parent | CMakeLists: Use CMAKE_THREAD_LIBS_INIT (diff) | |
download | yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.gz yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.bz2 yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.lz yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.xz yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.zst yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.zip |
Diffstat (limited to '')
-rw-r--r-- | externals/microprofile/microprofileui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h index eac1119a4..cc12739cb 100644 --- a/externals/microprofile/microprofileui.h +++ b/externals/microprofile/microprofileui.h @@ -879,7 +879,7 @@ void MicroProfileDrawDetailedBars(uint32_t nWidth, uint32_t nHeight, int nBaseY, static int64_t nRefCpu = 0, nRefGpu = 0; 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; nRefGpu = nTickReferenceGpu; |