Debugger: fix console output for 'disk info' cmd

. fix to ConsoleBufferPush() which was skipping a char when the line needed to output to a 2nd line
This commit is contained in:
tomcw 2022-04-03 18:49:32 +01:00
parent 1bcf371309
commit e97be1b836
2 changed files with 3 additions and 2 deletions

View File

@ -292,7 +292,8 @@ void ConsoleBufferPush ( const char * pText )
{
g_nConsoleBuffer++;
}
pSrc++;
if (c == '\n')
pSrc++;
pDst = & g_aConsoleBuffer[ g_nConsoleBuffer ][ 0 ];
}
else

View File

@ -106,7 +106,7 @@ std::string Disk2InterfaceCard::FormatPhaseString(float phase)
const UINT phaseInt = (UINT)phase;
const UINT phaseFrac = (UINT)((phase - (float)phaseInt) * 100 + 0.5);
return StrFormat("%02X.%2d", phaseInt, phaseFrac); // "$NN.nn"
return StrFormat("%02X.%02d", phaseInt, phaseFrac); // "$NN.nn"
}
std::string Disk2InterfaceCard::GetCurrentTrackString(void)