aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals/microprofile
diff options
context:
space:
mode:
authorSam Spilsbury <[email protected]>2016-03-27 12:01:57 +0800
committerSam Spilsbury <[email protected]>2016-04-23 11:53:55 +0800
commitfdd7e9e86aba614b20d1773112c43c094f668803 (patch)
tree329129275db3a822e72f46d897bf1accf253f8ac /externals/microprofile
parentaacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920 (diff)
downloadyuzu-mainline-fdd7e9e86aba614b20d1773112c43c094f668803.tar.gz
yuzu-mainline-fdd7e9e86aba614b20d1773112c43c094f668803.zip
microprofileui: Use correct printf specifier
Diffstat (limited to 'externals/microprofile')
-rw-r--r--externals/microprofile/microprofileui.h5
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;