diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 6d1208e23..561bf2155 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -1836,20 +1836,18 @@ static DWORD WINAPI EmuCreateDeviceProxy(LPVOID) g_bSupportsYUY2Overlay = g_bSupportsTextureFormat[XTL::X_D3DFMT_YUY2]; // check for YUY2 overlay support TODO: accept other overlay types - { - if(!g_bSupportsYUY2Overlay) + { + if (!g_bSupportsYUY2Overlay) EmuWarning("YUY2 overlays are not supported in hardware, could be slow!"); - else - { - // Does the user want to use Hardware accelerated YUV surfaces? - if (g_XBVideo.GetHardwareYUV()) - DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Enabled...\n"); - else - { - g_bSupportsYUY2Overlay = false; - DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Disabled...\n"); - } - } + else { + // Does the user want to use Hardware accelerated YUV surfaces? + if (g_XBVideo.GetHardwareYUV()) { + DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Enabled...\n"); + } else { + g_bSupportsYUY2Overlay = false; + DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Disabled...\n"); + } + } } // initialize primary surface diff --git a/src/CxbxKrnl/EmuFS.cpp b/src/CxbxKrnl/EmuFS.cpp index ca124e71b..7813f2907 100644 --- a/src/CxbxKrnl/EmuFS.cpp +++ b/src/CxbxKrnl/EmuFS.cpp @@ -411,28 +411,27 @@ void EmuGenerateFS(Xbe::TLS *pTLS, void *pTLSData) } #ifdef _DEBUG_TRACE - // dump raw TLS data - if (pNewTLS == nullptr) - DbgPrintf("KRNL: TLS Non-Existant (OK)\n"); - else - { - DbgPrintf("KRNL: TLS Data Dump...\n"); - if (g_bPrintfOn) - { - for (uint32 v = 0; v < dwCopySize; v++) // Note : Don't dump dwZeroSize - { - uint08 *bByte = (uint08*)pNewTLS + v; + // dump raw TLS data + if (pNewTLS == nullptr) { + DbgPrintf("KRNL: TLS Non-Existant (OK)\n"); + } else { + DbgPrintf("KRNL: TLS Data Dump...\n"); + if (g_bPrintfOn) { + for (uint32 v = 0; v < dwCopySize; v++) {// Note : Don't dump dwZeroSize - if (v % 0x10 == 0) - DbgPrintf("KRNL: 0x%.8X:", (xbaddr)bByte); + uint08 *bByte = (uint08*)pNewTLS + v; - // Note : Use printf instead of DbgPrintf here, which prefixes with GetCurrentThreadId() : - printf(" %.2X", *bByte); - } + if (v % 0x10 == 0) { + DbgPrintf("KRNL: 0x%.8X:", (xbaddr)bByte); + } - printf("\n"); - } - } + // Note : Use printf instead of DbgPrintf here, which prefixes with GetCurrentThreadId() : + printf(" %.2X", *bByte); + } + + printf("\n"); + } + } #endif }