show negative for debug counter

This commit is contained in:
dinkc64 2017-05-23 01:53:09 +00:00
parent 111bb35a92
commit fb7afe1b11

View File

@ -528,11 +528,19 @@ int RunMessageLoop()
#if defined (FBA_DEBUG)
case 'N':
counter--;
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X.\n"), counter);
if (counter < 0) {
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X (%d).\n"), counter, counter);
} else {
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X.\n"), counter);
}
break;
case 'M':
counter++;
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X.\n"), counter);
if (counter < 0) {
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X (%d).\n"), counter, counter);
} else {
bprintf(PRINT_IMPORTANT, _T("*** New counter value: %04X.\n"), counter);
}
break;
#endif
case VK_ESCAPE: {