Debugger: move Win32 functions to separate file. (PR #941)

* Debug.cpp: move Win32 functions to separate file.
* Move _tcscat -> strcat to maximise portability.
* Remove unneeded Win32 check.
This commit is contained in:
Andrea
2021-04-23 20:39:24 +01:00
committed by GitHub
parent c6c427aa3d
commit 41778aa472
11 changed files with 660 additions and 572 deletions
+2 -2
View File
@@ -202,13 +202,13 @@ static void _SetupColorRamp(const int iPrimary, int & iColor_)
g_aColorPalette[iColor_] = nColor;
#if DEBUG_COLOR_RAMP
wsprintf(sText, TEXT("RGB(%3d,%3d,%3d), "), nR, nG, nB);
_tcscat(sRamp, sText);
strcat(sRamp, sText);
#endif
iColor_++;
}
#if DEBUG_COLOR_RAMP
wsprintf(sText, TEXT(" // %d%d%d\n"), bB, bG, bR);
_tcscat(sRamp, sText);
strcat(sRamp, sText);
OutputDebugString(sRamp);
sRamp[0] = 0;
#endif