diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2016-03-27 06:01:57 +0200 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2016-04-23 05:53:55 +0200 |
commit | fdd7e9e86aba614b20d1773112c43c094f668803 (patch) | |
tree | 329129275db3a822e72f46d897bf1accf253f8ac | |
parent | microprofile: Use std::abs (diff) | |
download | yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar.gz yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar.bz2 yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar.lz yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar.xz yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.tar.zst yuzu-fdd7e9e86aba614b20d1773112c43c094f668803.zip |
-rw-r--r-- | externals/microprofile/microprofileui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h index cc12739cb..45bec8af6 100644 --- a/externals/microprofile/microprofileui.h +++ b/externals/microprofile/microprofileui.h @@ -1230,7 +1230,12 @@ void MicroProfileDrawDetailedBars(uint32_t nWidth, uint32_t nHeight, int nBaseY, char ThreadName[MicroProfileThreadLog::THREAD_MAX_LEN + 16]; const char* cLocal = MicroProfileIsLocalThread(nThreadId) ? "*": " "; +#if defined(WIN32) + // nThreadId is 32-bit on Windows int nStrLen = snprintf(ThreadName, sizeof(ThreadName)-1, "%04x: %s%s", nThreadId, cLocal, i < nNumThreadsBase ? &S.Pool[i]->ThreadName[0] : MICROPROFILE_THREAD_NAME_FROM_ID(nThreadId) ); +#else + int nStrLen = snprintf(ThreadName, sizeof(ThreadName)-1, "%04llx: %s%s", nThreadId, cLocal, i < nNumThreadsBase ? &S.Pool[i]->ThreadName[0] : MICROPROFILE_THREAD_NAME_FROM_ID(nThreadId) ); +#endif uint32_t nThreadColor = -1; if(nThreadId == nContextSwitchHoverThreadAfter || nThreadId == nContextSwitchHoverThreadBefore) nThreadColor = UI.nHoverColorShared|0x906060; |